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

retry does not seem to work in global settings #4490

Closed
6 tasks done
djurdjen opened this issue Nov 13, 2023 · 0 comments · Fixed by #4530
Closed
6 tasks done

retry does not seem to work in global settings #4490

djurdjen opened this issue Nov 13, 2023 · 0 comments · Fixed by #4530
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@djurdjen
Copy link

Describe the bug

I have set the retry property on the global settings like this:

    test: {
      retry: 3,
    }

Yet it doesn't seem to retry the test when it fails.
It does however work when providing individual tests with the retry property.

I'm not sure if this is by design. But it seems odd that property is present in the object interface for the global settings but doesn't do anything.

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-9rwytu?file=test%2Fbasic.test.ts

System Info

System:
    OS: macOS 12.1
    CPU: (8) arm64 Apple M1
    Memory: 145.02 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 18.16.1 - ~/.nvm/versions/node/v18.16.1/bin/node
    npm: 9.8.1 - ~/.nvm/versions/node/v18.16.1/bin/npm
  Browsers:
    Chrome: 119.0.6045.123
    Safari: 15.2
    Safari Technology Preview: 15.4
  npmPackages:
    @vitejs/plugin-vue: ^4.3.4 => 4.3.4 
    @vitest/coverage-v8: ^0.34.6 => 0.34.6 
    @vitest/ui: ^0.34.6 => 0.34.6 
    vite: ^4.4.9 => 4.4.9 
    vitest: ^0.34.6 => 0.34.6

Used Package Manager

npm

Validations

@sheremet-va sheremet-va added bug p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels Nov 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants