Skip to content
Drop in replacement for qunit `test` which retries a failed test.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.travis.yml
LICENSE.md
README.md
index.js
package-lock.json
package.json

README.md

qunit-retry

TravisCI Build Status Latest NPM release

Drop in replacement for QUnit test to retry test upon failure.

// retry this test on failure as third party service occasionally fails
// we need to test against third party service
// we can live with occasional third party service failure
retry("a test relying on 3rd party service that occassionaly fails", function(assert) {
  var result = occasionallyFailingServiceTestResult();
  assert.equal(result, 42);
});

Use very sparingly, for a suite of 2024 tests, using this for a single acceptance test.

Install

npm

npm install --save-dev qunit-retry

or using yarn:

yarn add --dev qunit-retry

Contributing

How to Run Tests

npm test

License

qunit-retry is developed by and © mrloop and contributors. It is released under the ISC License.

You can’t perform that action at this time.