no option to exit on first failure (ie --stop like nosetests)

Bug #1211926 reported by alexius ludeman
12
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

Revision history for this message
Robert Collins (lifeless) wrote :

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.

Changed in testrepository:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.