Is it possible to get the results of a test (i.e. whether all assertions have passed) in a tearDown() method? I\'m running Selenium scripts, and I\'d like to do some reporti
Python 2.7.
You can also get result after unittest.main():
t = unittest.main(exit=False) print t.result
or use suite:
suite.addTests(tests) result = unittest.result.TestResult() suite.run(result) print result