chihuahua-reporters v2.0.2
chihuahua-reporters 
Reporters for the Chihuahua test runner. The library supports XUnit so test results can be consumed by build servers.
Installation
You'll need chihuahua-tester in order to use this module.
npm install chihuahua-tester --save-dev
npm install chihuahua-reporters --save-devConfiguration
Set your test command in package.json to something like the following:
$(npm bin)/chi-run spec *.test.js .testresults default coverage xunitThe parameters to chi-run are:
- Directory containing test files (treated recursively).
- File matching pattern.
- Directory for report files.
Reporters. All reporters currently supported are shown. The
xunitreporter will only display to the terminal if you supply the parameter as+xunit. All supplied reporters will deposit a file in the report files filder.
NYC
The library uses NYC for coverage. If you want to exclude your test files from coverage checks, you will need to edit your package.json. Adding something like the following will exclude your test files:
"nyc": {
"include": [
"src/**/*"
]
}The module can use NYC if you install it to your project or globally. If you install it globally, this helps keep your project dependency tree smaller. It presents a problem if you need to consume coverage in your build process. The simple way to address this is to add the following line to a script task near the start of your build process:
npm install nycHistory
- Version 2.0.2 2017-04-01: Fixed creation of an unwanted directory call " during NYC run.