Getting Started

In Node.js

Getting Started in Node.js

In the browser

Getting Started in the browser

Guides

Check these QUnit tutorials and examples, to make the most of your unit tests!

  1. QUnit.module: How to group related tests.
  2. QUnit.test: Define tests, How to wait for async code
  3. Fixture feature: Keeping your DOM tests atomic.
  4. Step API: Testing asynchronous callbacks or event listeners.
  5. Assertions: Partial object comparison, expected exceptions, and much more.
  6. Browser: Productivity tricks, Browser automation, What can the toolbar do?
  7. CLI: Productivity tricks, Code coverage.

Support

To report a bug or request a new feature, open an issue.

If you need help using QUnit, join us in the Matrix chat!


Linting

The eslint-plugin-qunit package has a variety of rules available for enforcing best testing practices as well as detecting broken tests.


Download

These are the official release channels for QUnit releases:


Further reading