Possible Duplicate:
Python unittest - invoke unittest.main() with a custom TestSuite
I have a testsuite created with e.g.
suite = unittest.TestSuite()
suite.addTest(module1.MyTest("test_simple"))
suite.addTest(module2.MyTest("test_simple"))
and need to start these tests with unitest.main()
. When trying just unitest.main(suite)
no tests are run at all. How can I do this with unittest.main()
without calling test.TextTestRunner
or similar?