
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
qunit-reporter-junit
Advanced tools
A QUnit plugin that produces JUnit-style XML test reports (e.g. for integration into build tools like Jenkins).
Include the plugin script ("qunit-reporter-junit.js") after the QUnit core script itself, then register callback(s) using jUnitDone
to do something with the XML string (e.g. upload it to a server):
QUnit.jUnitDone(function(report) {
if (typeof console !== 'undefined') {
console.log(report.xml);
}
});
With this new API (as of v1.1.0
), you can even register a callback after the tests have finished and still successfully receive the data (so long as the "qunit-reporter-junit.js" script was included before the test run began).
The old API approach of implementing the jUnitReport
hook is also still supported:
QUnit.jUnitReport = function(report) {
if (typeof console !== 'undefined') {
console.log(report.xml);
}
};
With this old API, you MUST implement the callback before the tests have finished or else you will never receive the data.
If you're using Grunt, you should take a look grunt-contrib-qunit.
FAQs
Produce JUnit-style XML test reports with QUnit.
The npm package qunit-reporter-junit receives a total of 3,459 weekly downloads. As such, qunit-reporter-junit popularity was classified as popular.
We found that qunit-reporter-junit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.