Skip to content

Support retrying timed out tests #22

Description

@VasylMarchuk

Hey @mrloop! Is there any way to retry tests that time out? Doesn't look like the test is retried if it fails due to a timeout.

We set the global timeout using QUnit.config.testTimeout, and I've also tried setting a local one using assert.timeout with no luck — it doesn't appear that the test is retried:

Image

Code

let tryCount = 0;
retry("a flaky test that occasionally times out", async function (assert) {
  assert.timeout(5);
  console.log('tryCount', ++tryCount);
  // ... some code that occasionally times out due to reasons outside our control
  // for example:
  await timeout(1000);
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions