QUnit Retry
JSON →qunit-retry is a utility package for QUnit that provides a drop-in replacement for the standard `QUnit.test` function, enabling automatic retries for failing tests. This is particularly useful for handling intermittent failures in test environments, such as those caused by unreliable third-party services or network flakiness, rather than masking legitimate bugs. The current stable version is `3.0.1`. The library is actively maintained, with recent major and patch releases indicating ongoing development. Key features include the ability to configure the maximum number of retries globally or per test, support for `QUnit.test`'s full API (including `test.each` and `test.only`), and a `beforeRetry` hook to reset the testing environment between retry attempts. It distinguishes itself by seamlessly integrating into existing QUnit setups with minimal code changes, making it an efficient solution for improving test suite stability against non-deterministic external factors.
Traffic · last 30 days ↓56% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany