Main methods

If you’re new to QUnit, check out Getting Started!

QUnit.module()

Group related tests under a common label.

QUnit.start()

Start the test runner.

QUnit.test()

Define a test.

QUnit.test.each()

Define tests using a data provider.

QUnit.test.if()

Define a test that is automatically skipped when a condition is false.

QUnit.test.only()

Define a test that is exclusively run.

QUnit.test.skip()

Define a test that will be skipped.

QUnit.test.todo()

Define a test that is not yet expected to pass.