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

Only rerun tests that failed timeouts #745

Open
plocket opened this issue Aug 9, 2023 · 2 comments
Open

Only rerun tests that failed timeouts #745

plocket opened this issue Aug 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@plocket
Copy link
Collaborator

plocket commented Aug 9, 2023

Edit: I've made this feature request in the cucumberjs lib for retrying tests as it seems there's no good way to do it at the moment. I've been told we shouldn't try to manipulate the below values.

In the cucumberjs API documentation for After(), you can pass an option to a callback called willBeRetried. I think that would let us control whether a test will be retried.

That might be a better way to:

  • handle retrying tests that fail with a timeout
  • avoid rerunning failed random tests.
@plocket
Copy link
Collaborator Author

plocket commented Aug 9, 2023

Edit: I've been told we shouldn't try to manipulate these values.

This may be relevant, as willBeRetried might move. Also, though, we have to look into whether this is a property we should avoid touching.

Edit: Maybe also something in modifying test results issue at the bottom or linked in the new functionality (though I think that new functionality may actually not be capable of this).

@plocket plocket added the enhancement New feature or request label Aug 9, 2023
@plocket
Copy link
Collaborator Author

plocket commented Dec 13, 2023

Instead of avoiding rerunning random tests, we can use a seed to make random tests replicable. I'm not sure how we can then pass that value to the retry, but we can research that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant