qunit-reporter-junit

Produce JUnit-style XML test reports with QUnit.

npm install qunit-reporter-junit
3 downloads in the last day
27 downloads in the last week
112 downloads in the last month

Build Status

JUnit reporter for QUnit

A QUnit plugin that produces JUnit-style XML test reports (e.g. for integration into build tools like Jenkins).

Usage

Include the plugin script after QUnit itself, then implement the jUnitReport hook to do something with the XML string (e.g. upload it to a server):

QUnit.jUnitReport = function(report) {
    console.log(report.xml);
};

Notes

If you're using Grunt, you should take a look grunt-contrib-qunit.

npm loves you