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 inside codecept.conf.js not working #3663

Closed
shineqwe opened this issue May 12, 2023 · 2 comments · Fixed by #3667
Closed

retry inside codecept.conf.js not working #3663

shineqwe opened this issue May 12, 2023 · 2 comments · Fixed by #3667

Comments

@shineqwe
Copy link

shineqwe commented May 12, 2023

I'm trying to set up a global option to re-run failed tests as written

https://codecept.io/basics/#retry-configuration

export const config: CodeceptJS.MainConfig = {
   tests: 'tests/site/**/*_test.ts',
   output: './output',
   retry: 2

When it crashes, tests are not re-executed
framework version "codeceptjs": "^3.4.1"

@jhalborg
Copy link

jhalborg commented May 26, 2023

Confirmed, we are experiencing the same issue. We also tried the more explicit retry configs and different combinations

retry: [
    {
      Scenario: 1,
      Feature: 1,
    },
    {
      grep: '@flaky',
      Scenario: 3,
      Feature: 2,
    },
    // Typings will be fixed in future version, PR already landed but is not published yet:
    // https://github.com/codeceptjs/CodeceptJS/pull/3602
    // Should be fixed once 3.4.2+ or 3.5 is published
  ]

but no retries are ever performed - also 3.4.1

@jhalborg
Copy link

Linking these two issues together: #3607

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.

2 participants