-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add failfast option #207
Comments
This might be a related testtools API? I don't dig it that much yet though. |
Well part of of the complexity for an option like this is how do we handle multiple workers? Since it's a subprocess we don't have a lot of control over the workers. If one worker fails when we have failfast set how to we gracefully stop running all the other tests. |
yeah, that's a good question. I think we don't have a smart way to do that. So, how about making this |
This feature is more important than it seems because without it a failure to setup the test environment can easily produce desasters where huge amount of failures with a lot of extra debug information would flood console and logs. It happened to me on multiple occasions with stestr, on multiple projects. At least in one case it also put the worker to its knees because each test was tryin to start a heavy service: 10gb ram used and all threads maxed forever. |
I'm feeling the need for this feature right now :) |
Issue description
When we run tests with stestr, stestr execute all of the tests even if the test fails during the execution.
I think this is enough for the most of the CI/CD cases. However, if we run a lot of test cases (it takes long time) manually, it might be a good option. It can save the time for users to wait the end of the tests.
NOTE: This is not a bug report but a feature request.
Expected behavior and actual behavior
Expected: A test fails as soon as possible when a test case fails with the
failfast
option.Steps to reproduce the problem
N/A
Specifications like the version of the project, operating system, or hardware
N/A
System information
N/A
Additional information
The text was updated successfully, but these errors were encountered: