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

[Feature request]: Add option to retry failed tests #502

Open
ajhenry opened this issue Aug 2, 2024 · 0 comments
Open

[Feature request]: Add option to retry failed tests #502

ajhenry opened this issue Aug 2, 2024 · 0 comments
Labels
feature request New feature or request needs triage

Comments

@ajhenry
Copy link

ajhenry commented Aug 2, 2024

Is your feature request related to a problem? Please describe.

When using chromium, if the browser does not start in time, it can cause the test runner to timeout. In these rare cases we'd ideally like to retry the test (and potentially up the timeout limit).

Describe the solution you'd like

Jest provides this functionality through a config option call retryTimes with the following API:

jest.retryTimes(numRetries, options?)

This option should exist in the storybook base config/CLI options.

The output of all the failed attempts should be condensed in the failure report.

Describe alternatives you've considered

There's a couple unideal options:

  1. You would have to run the whole suite again on fail.
  2. You would grep/fetch which tests failed and run those individually again

Both of these present significant challenges in terms of time and effort.

Are you able to assist to bring the feature to reality?

no

Additional context

No response

@ajhenry ajhenry added feature request New feature or request needs triage labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request needs triage
Projects
None yet
Development

No branches or pull requests

1 participant