QUnit 1.15.0 Released
Features heavily improved async testing!
Changelog
- Assert: Introduce Assert constructor with test context. This heavily improves debugging of async tests, as assertions can’t leak into other tests anymore. Use the new
assertargument in your test to get the full benefit of this. (Leo Balter) #374 - Assert: Improve the default message from
assert.ok()to include the exact received value. - Assert: Removal of deprecated
raises,same, andequalsmethods. Usethrows,deepEqual, andequalinstead. - Core: Add
totalTestsfor total number of tests toQUnit.begin()data. - Dump: Rename
QUnit.jsDumptoQUnit.dump, the old name is kept as deprecated alias and may be removed later. - Dump: Output non-enumerable properties of TypeError. Makes it easier to compare properties of error objects.
- HTML Reporter: Output only assertion count for green tests. Less visual clutter for passing tests.
- Assert: Support for buggy IE native Error types in
assert.throws().