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

feat: add option to interrupt test runner #460

Open
grandizzy opened this issue Jun 10, 2024 · 3 comments
Open

feat: add option to interrupt test runner #460

grandizzy opened this issue Jun 10, 2024 · 3 comments

Comments

@grandizzy
Copy link
Contributor

At this moment there's no way to programmatically stop a test run in process with replay, which simply loops until a failure or all configured cases pass

while self.successes < self.config.cases {

It would be nice to be able to interrupt this loop at will so in a setup with multiple tests started at the same time (not using fork feature but rather parallelized using rayon for example) following scenarios could be achieved:

  • fail fast: when one of these test fails then the other tests are interrupted
  • timeout (not using rusty fork / fork timeout feature): interrupt all running tests when timer (started outside tests) expires
@grandizzy
Copy link
Contributor Author

made a PR with proposed implementation #461 @matthew-russo please have a look when time permits. thank you!

@grandizzy
Copy link
Contributor Author

@matthew-russo any thoughts re this issue and associated PR really appreciated, thank you!

@grandizzy
Copy link
Contributor Author

ping @matthew-russo any insight re this issue and PR #461. thank you!

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 a pull request may close this issue.

1 participant