Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

istanbul-phabricator-reporter

swahvay161ISC1.1.4

istanbuljs reporter for the Phabricator code coverage format.

phabricator, codecoverage, code coverage, code-coverage, coverage, istanbuljs

readme

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