Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 753 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 753 Bytes

#JUnit Reporter for Mocha Build Status

Produces JUnit-style XML test results.

Installation

$ npm install mocha-junit-reporter --save-dev

or as a global module

$ npm install -g mocha-junit-reporter

Usage

Run mocha with mocha-junit-reporter:

$ mocha test --reporter mocha-junit-reporter

This will output a results file at ./test-results.xml. You may optionally declare an alternate location for results XML file by setting the command line argument MOCAH_FILE:

$ MOCHA_FILE=./path_to_your/file.xml mocha test --reporter mocha-junit-reporter