Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop Tests On First Failure #214

Closed
tsilvia opened this issue Sep 19, 2014 · 7 comments
Assignees
Labels
Milestone

Comments

@tsilvia
Copy link

@tsilvia tsilvia commented Sep 19, 2014

The idea would be to add a command line flag to lab that would cause the set of test cases to stop on first failure and show the output of that failed test instead of having to wait for all tests to complete and then see the output.

You could also make it an option that it shows the reason for the test failure in line with the verbose output so you can see the reason for the failure as the tests continue to run so you can determine if tests are failing due to the same issue. Again without waiting for the entire set of tests to complete.

@hueniverse hueniverse added the request label Sep 19, 2014
@AdriVanHoudt

This comment has been minimized.

Copy link
Contributor

@AdriVanHoudt AdriVanHoudt commented Nov 3, 2014

👍 Making this available on experiment level would be super practical. My tests follow up on each other so if one test fails the tests after that fail automaticly.

@bkendall

This comment has been minimized.

Copy link
Contributor

@bkendall bkendall commented Mar 17, 2015

👍 would be nice to have large test suites stop quickly on an early failure

@anandkumarpatel

This comment has been minimized.

Copy link

@anandkumarpatel anandkumarpatel commented Apr 20, 2015

👍 would reduce our test time drastically

@Danlock

This comment has been minimized.

Copy link

@Danlock Danlock commented Oct 26, 2016

Can a --bail option be added (such as the one in mocha) ?

@Marsup

This comment has been minimized.

Copy link
Member

@Marsup Marsup commented Oct 26, 2016

The label help wanted means anyone can go ahead and make a PR, if you need it you know what to do.

@goddyZhao

This comment has been minimized.

Copy link

@goddyZhao goddyZhao commented Jan 2, 2017

+1, this is really helpful especially for the tests which are with heavy tasks

@geek geek self-assigned this Jan 17, 2017
@geek geek added feature and removed help wanted labels Jan 17, 2017
@geek geek added this to the 12.0.0 milestone Jan 17, 2017
@TangMonk

This comment has been minimized.

Copy link
Contributor

@TangMonk TangMonk commented Jan 17, 2017

+1

@geek geek closed this in #671 Jan 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.