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.
QUnit can run anywhere; web browsers, Node, SpiderMonkey, even in a Web Worker! Test your code where it runs.
function add(a, b) {
return a + b;
}
QUnit.module('add', hooks => {
QUnit.test('two numbers', assert => {
assert.equal(add(1, 2), 3);
});
});
<iframe loading="lazy" title="The example test code running in the browser" src="/resources/example-add.html"></iframe>
v2.20.1 (changelog)
These are the officially supported release channels for QUnit:
- CDN:
qunit-2.20.1.js
andqunit-2.20.1.css
- npm:
npm install --save-dev qunit
- Yarn:
yarn add --dev qunit
- Bower:
bower install --save-dev qunit
Join us on [Mastodon](https://fosstodon.org/@qunit), [Twitter](https://twitter.com/qunitjs), or [Gitter chat](https://gitter.im/qunitjs/qunit).
To contribute:
- Watch the repository to learn about release, new requests, or bug reports.
- The source of this website, is in the "docs/" directory.
What are you waiting for? Get started!