This testing framework can be especially useful for regression testing, helping developers uncover new type of bugs as the codebase evolves.
QUnit is similar to other unit testing frameworks (like JUnit) and is considered a part of the xUnit testing framework family.
In a hurry? Add it to your Download Basket!
What's New in version 1.15.0
- Assert: Implement Assert constructor with test context. This heavily improves debugging of async tests, since assertions can't leak into other tests anymore. Use the assert argument in your test callbacks to run assertions to get the full benefit of this.
- Assert: Improved the default message from assert.ok. Now assert.ok() outputs the exact value it received, instead of only saying it wasn't thruthy.
- Assert: Removal of raises, same and equals. These were deprecated a long time ago and finally removed. Use throws, deepEqual and equal instead.
- Core: Pass total amount of tests to QUnit.begin callback as totalTests. Will be used by Karma and other reporters.