Hello,
I'm writing tests for the POP3 and SMTP modules. These modules must
connect to POP3 and SMTP servers in order to be fully tested.
Currently, I am using a default installation of James running on localhost
with a user named test. This seems to work pretty well for me but might
introduce an unwelcome dependency for people who want to run the tests.
Question:
(1) Should I write the tests and hardcode in 'localhost', 'user=test' and
'password=blah'??
or
(2) Should I make a small class named POP3TestConstants and set the values
there for the server, user and password there? Future testers would have to
modify this class or a config file to run the tests on their machines?
or
(3) Should I stick to unit tests that can be run without having to use a
server? (I think this would lead to a very incomplete set of tests.)
or ???. I'm open to advice.
I appreciate any help. I'm pretty new at this and would like to do things
the right way.
Thanks,
Mike
In order to make
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]