istanbul-phabricator-reporter

istanbuljs reporter for the Phabricator code coverage format.

Usage no npm install needed!

<script type="module">
  import istanbulPhabricatorReporter from 'https://cdn.skypack.dev/istanbul-phabricator-reporter';
</script>

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