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

Add --fail-fast flag #2040

Merged
merged 8 commits into from
Aug 3, 2023
Merged

Add --fail-fast flag #2040

merged 8 commits into from
Aug 3, 2023

Conversation

natebosch
Copy link
Member

@natebosch natebosch commented Jun 20, 2023

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.

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.
The "immediately" is misleading - when there are tests running
concurrently they aren't interrupted.
@natebosch natebosch marked this pull request as ready for review August 2, 2023 23:12
@natebosch natebosch merged commit 5d571d6 into master Aug 3, 2023
32 checks passed
@natebosch natebosch deleted the fail-fast branch August 3, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Fail fast option
2 participants