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
In few words, this gives True if all test run so far exited with no errors or failures:
True
class WatheverTestCase(TestCase): def tear_down(self): return not self._outcome.result.errors and not self._outcome.result.failures
Explore _outcome's properties to access more detailed possibilities.
_outcome