On Jan 17, 2013, at 03:14 AM, Sandesh Agrawal wrote:
Is there a way of unning only test_lmtp.py to test lmtp runner or do i need to do the full test using ./bin/test .
Yes, you can run various subsets of tests by using the -t option. MM3 currently uses zope.testrunner. All the gory details:
I tried runnign both of the below ./bin/test ./src/mailman/runners/tests/test_lmtp.py/ ./bin/py ./src/mailman/runners/tests/test_lmtp.py
What is the correct way of running the unit test for lmtp runner ?
bin/test -t TestLMTP would run all the tests in that class. Or,
bin/test -t test_message_id_required to run an individual test. -t
accepts other patterns, and I always add -vv to get more verbosity.
I think that the new test function that i need to add to test_lmtp.py has to be added to some configuration file or some base class because while running ./bin/test -vv -t TestLMTP , it runs only 4 tests (for the functions originally defined in test_lmtp.py) and my new function added is ignored. I could not figure out the process of adding a new test function to it.