QUnit 2.16.0 Released: Add test.each
Improve accessibility, introduce data providers, and fix bugs.
Thanks to our contributors!
Changelog
Added
- Core: New
QUnit.test.each()method to test with data providers. (Ventuno) #1568 - Core: New
failOnZeroTestsconfiguration option. (Brenden Palmer) -
Core: New
QUnit.reportersinterface. (Timo Tijhof) f8948c9 js-reporters#133This introduces support for using the
tapreporter in a browser. This was previously limited to the CLI.
Changed
- Assert: Indicate which test a drooling
assert.async()callback came from. (Steve McClure) #1599
Deprecated
- Core: Warn when a module callback has a promise as a return value. (Ray Cohen) #1600
Fixed
- Core: Fix
QUnit.module.only()regression where some unrelated modules also executed. (Steve McClure) #1610 - CLI: Improve ESM detection. (Steve McClure) #1593
- HTML Reporter: Increase contrast and use richer colors to improve accessibility. (Timo Tijhof) #1587