Skip to content

nearform/node-test-junit-reporter

Repository files navigation

node-test-junit-reporter

A JUnit test reporter for the Node.js test runner

CI

Installation

npm i -D node-test-junit-reporter

Usage

node --test --test-reporter node-test-junit-reporter --test-reporter-destination report.xml

You can also have a different test reporter output to stdout while still saving the JUnit report to a file:

node --test --test-reporter tap --test-reporter-destination stdout --test-reporter node-test-junit-reporter --test-reporter-destination report.xml