Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including qunit-retry with all npm packages installed. Try it out:

var qunitRetry = require("qunit-retry")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

qunit-retry v0.0.5

Drop in replacement for qunit `test` which retries a failed test.

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.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free