Istanbul Reporter AWS Cloudwatch Metrics
This is a custom istanbuljs reporter to generate coverage metrics to Phabricator.
Installing
In your project:
npm install -i istanbul-phabricator-reporter --save-dev
Then run nyc
with this custom reporter via the command line:
nyc --reporter=istanbul-phabricator-reporter mocha
Or, change your npm scripts for your project in package.json:
(...)
"scripts": {
"test": "nyc --reporter=istanbul-phabricator-reporter mocha"
},
(...)
Getting Started
After running nyc and having your coverage results you'll have a coverage/phabricator_data.json
file
ready to be published to Phabricator through harbormaster.sendmessage
.
License
This project is licensed under the MIT License - see the LICENSE.md file for details