0.0.1-3 • Published 11 years ago
spec-xunit-file v0.0.1-3
spec-xunit-file
Mocha test reporter. Displays 'spec' reporter output to stdout and generates a xunit XML file in background.
Based upon xunit-file reporter
How to use
- Install
spec-xunit-file
> npm install --save-dev spec-xunit-file- If using mocha cli with use the
-Ror--reporteroption
> mocha -R spec-xunit-fileor
> mocha --reporter spec-xunit-fileOptions
The xunit output file is saved by default in a file called xunit.xml in the current directory i.e. process.cwd()/xunit.xml
To override this file or location use the XUNIT_FILE environment varrible
> XUNIT_FILE=output/xunit.xml mocha -R xunit-fileSet LOG_XUNIT environment variable, if you want the output in the console and xml file.
> LOG_XUNIT=true mocha -R xunit-fileCredits
This reporter is based on xunit-file which in-turn based on the original xunit reporter from mocha only writing the result in an xml file.