Closed nishnk-vishi closed 2 years ago
Do you only want the failed ones? If you want all tests, there is test.to_raw_file('/tmp/raw_file.txt')
(see lines 16-21 of this).
If you only want the failed ones, you can do the same thing (but you need to call test.to_raw_file
before running it, because that messes up the index), and get the index of failed testcases from test.results.passed
(where True
means it passed the test, so you just filter by False
)
We need to save the all the failed test cases in a text file. Is there a way to save them??