Add option for re-running failed tests.

This adds the option '--rerun' to the `test-backend` infrastructure.
It runs the tests that failed during the last 'test-backend' run.  It
works by stailing failed test info at var/last_test_failure.json

Cleaned up by Umair Khan and Tim Abbott.
This commit is contained in:
Adarsh S
2016-12-23 23:12:45 +05:30
committed by Tim Abbott
parent 79ad174ad3
commit d54dea819d
3 changed files with 49 additions and 4 deletions

View File

@@ -46,7 +46,9 @@ tests.
Another thing to note is that our tests generally "fail fast," i.e. they
stop at the first sign of trouble. This is generally a good thing for
iterative development, but you can override this behavior with the
`--nonfatal-errors` option.
`--nonfatal-errors` option. A useful option to combine with that is
the `--rerun` option, which will rerun just the tests that failed in
the last test run.
## How to write tests.