-
Notifications
You must be signed in to change notification settings - Fork 215
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
feat: Fail fast option #1841
Comments
I can imagine two levels of fast failure - one level would skip the Which level would be most useful? I'd lean towards implementing the latter, but I could also imagine implementing both. |
The 2nd approach sounds good to me. |
Closes #1841 Add a `--fail-fast` flag which stops running test cases after the first failure. - In the Engine, check for failed tests immediately after running them. When fast failures are enabled `close()` the engine after any failure. Cleanups teardowns and cleanups will run, and any concurrently running tests in other suits will finish, but no further tests will start. - Add the argument in `Configuration` and parse it with the args.
Closes #1841 Add a `--fail-fast` flag which stops running test cases after the first failure. - in the engine, check for failed tests immediately after running them. when fast failures are enabled `close()` the engine after any failure. Teardowns and cleanups will run, and any concurrently running tests in other suits will finish, but no further tests will start. - add the argument in `configuration` and parse it with the args. - add a test with a failing case that prevents later tests from running.
Add an option
--fail-fast
to exit the test process when the first failed test occurs.This is especially useful in CI environments where running more tests leads to unnecessary costs.
The text was updated successfully, but these errors were encountered: