QUnit.config.reorder

version added: 1.0.0.

Description

Allow re-running of previously failed tests out of order, before all other tests.

type boolean
default true

By default, QUnit will prioritize re-running tests that failed on a previous run. For large test suites, this can speed up your feedback cycle by a lot.

Note that this feature may lead to unexpected failures if you have non-atomic tests that rely on a very specific execution order. You should consider improving such tests, but this option allows you to disable the reordering behaviour.

This feature is limited to browser environments by default, as it utilizes the sessionStorage API. Set QUnit.config.storage to enable this feature in Node.js or in other environments.