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.
  8. Reporter API: Event emitter, Create your own reporter.
  9. Theme API: Create your own theme.

Support

To report a bug, request a new feature, or ask a question open an issue on GitHub.

You can also find support on StackOverflow. Use the “qunit” hashtag on StackOverflow to search existing questions or ask your own question.

Chat

If you need help, join us in our chat room on Matrix at #qunitjs_qunit:gitter.im:

Social media

Follow us:

Hashtags:


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