layout | home_img | home_primary_btn | home_secondary_btn | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
home |
/img/logo-text.svg |
|
|
Easy, zero configuration setup for any Node.js project and minimal configuration for Browser-based projects.
Tests can be run anywhere; Node, your browser, even inside a Web Worker. Test your code where it runs.
const add = (a, b) => a + b;
QUnit.module('add', function() {
QUnit.test('should add two numbers', function(assert) {
assert.equal(add(1, 1), 2, '1 + 1 = 2');
});
});
<iframe loading="lazy" title="The example test code running in the browser" src="/resources/example-add.html"></iframe>
v2.11.2 (changelog)
These are the officially supported download channels for QUnit releases:
- npm:
npm install --save-dev qunit
- Yarn:
yarn add --dev qunit
- Bower:
bower install --save-dev qunit
- CDN:
qunit-2.11.2.js
&qunit-2.11.2.css
What are you waiting for? Get started!