QUnit
  • Guides
    • Getting Started
    • Download
    • Browser Runner
    • Command-line Interface
    • Compatibility
    • Test lifecycle
    • QUnit 2.0 Upgrade Guide
  • Documentation
  • Blog
  • Community
    • Support & Chat
    • Plugins
    • Who's using QUnit?
    • About QUnit
    • Badge
    • Brand Guidelines

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()

Add tests using a data provider.

QUnit.test.if()

Add a test that may be skipped.

QUnit.test.only()

Add a test that is exclusively run.

QUnit.test.skip()

Add a test that will be skipped.

QUnit.test.todo()

Add a test which expects at least one failing assertion.

Main methods

  • QUnit.module()
  • QUnit.start()
  • QUnit.test()
  • QUnit.test.each()
  • QUnit.test.if()
  • QUnit.test.only()
  • QUnit.test.skip()
  • QUnit.test.todo()

Assertions

Callback events

Async control

Configuration

Reporters

Extension interface

Deprecated methods

Removed methods

GitHub Chat Mastodon Bluesky Twitter

Copyright OpenJS Foundation and contributors.
Edit this page