Plugins


Bundled Plugins

QUnit includes a few plugins in its repository. These add custom assertions, help with continous integration, and provide alternative themes.

  • PhantomJS Runner - a runner for PhantomJS, providing console output for tests. If you're using grunt, use its qunit task instead.
  • Themes - alternative themes, load their CSS file instead of the default one.

Official Plugins

QUnit also has a few official plugins in separate repositories. These run multiple test suites from one and help with continous integration.

  • Composite - bundle multiple test suites into a single file, running them in an iframe
  • JUnit Logger - produces JUnit-style XML output for test results, for integration into tools like Jenkins

Third-Party Plugins and Integrations

If you prefer BDD-style APIs for testing, check out SpecIt and Pavlov. For testing ajaxy code, check mockjax and sinon.js. That and more below.