no option to exit on first failure (ie --stop like nosetests)
Bug #1211926 reported by
alexius ludeman
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Testrepository |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
can you please add an option on exiting upon first failure? (ie nosetest --stop)
thanks
To post a comment you must log in.
testr can't support --stop in the same way as nose because it's a meta-runner, not a runner. However subunit.run, like testtools.run, like unittest supports --failfast (or -f).
So
testr run -- -f
will run single-worker and cause that worker to stop one a single failure occurs.
I'm very open to the idea of cancelling other workers once a failure is detected in parallel mode, if someone wants to work on a patch.