You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Give better feedback by default in the common case of an async test failing or getting stuck. This applies to both the HTML Reporter and QUnit CLI on Node.js (Common case, because inevitably something somewhere might have relied on taking longer than the default timeout we'll come up with, e.g. minutes or hours).
Avoid silent failure when using QUnit via require('qunit') without the QUnit CLI, ref Async tests can abruptly stop in standalone Node.js mode #1132. Right now, due to there not being a default timeout, there appears to be nothing preventing Node.js from silently existing the process after a stuck async test.
Improve documentation of config.testTimeout to include an example of how to set this for integrations like karma-qunit, node-qunit-puppeteer and the QUnit CLI since for many users this is likely the first time they are needing to set a configuration option rather than simply loading test files into a test runner.
In QUnit 2.x, emit a warning for tests that have no timeout configurred but take longer than our preferred timeout.
In QUnit 3.0, enable the timeout by default and remove the warning.
The text was updated successfully, but these errors were encountered:
We'll need a way to warn users on the last 2.x release if their tests take longer and don't yet have a timeout configured, so that they can set a higher timeout ahead of the QUnit 3.0 release.
Tip
Migration guide has been published at: https://qunitjs.com/api/config/testTimeout/
Rationale
require('qunit')
without the QUnit CLI, ref Async tests can abruptly stop in standalone Node.js mode #1132. Right now, due to there not being a default timeout, there appears to be nothing preventing Node.js from silently existing the process after a stuck async test.Research
Subtasks
karma-qunit
,node-qunit-puppeteer
and the QUnit CLI since for many users this is likely the first time they are needing to set a configuration option rather than simply loading test files into a test runner.The text was updated successfully, but these errors were encountered: