I'm making unittests with python. I am not using any automatical test discovery. I am assembling TestCases
into a TestSuite
manually.
I can run these tests with unittest.TextTestRunner().run(suite)
, I would like to run them with unittest.main()
so that I can use command line options (like -v
/--failfast
). The documentation says that unittest.main()
can take a TestRunner option.
How to convert my TestSuite
into a TestRunner
?