Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Latest commit

 

History

History
101 lines (68 loc) · 2.36 KB

index.md

File metadata and controls

101 lines (68 loc) · 2.36 KB
layout
home

Easy

Easy, zero configuration setup for any Node.js project and minimal configuration for Browser-based projects.

Universal

Tests can be run anywhere; Node, your browser, even inside a Web Worker. Test your code where it runs.

Extensible

Flexible APIs for custom assertions, runners, and reporters mean you can extend QUnit to fit your needs.


A Quick Example

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');
  });
});

Browser Result

<iframe title="The example test code running in the browser" src="../resources/example-add.html"></iframe>

CLI Result

TAP version 13
ok 1 add > should add two numbers
1..1
# pass 1
# skip 0
# todo 0
# fail 0

Current Release

v2.10.1 (changelog)

Release Downloads

These are the officially supported download channels for QUnit releases:

Pre-release Downloads

These downloads give you access to the latest features and bug fixes to QUnit that have not been released yet:


What are you waiting for? Get started!