Skip to content

Custom istanbuljs reporter to generate coverage metrics to AWS Cloudwatch Metrics

License

Notifications You must be signed in to change notification settings

pedrocarrico/istanbul-reporter-aws-cloudwatch-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Istanbul Reporter AWS Cloudwatch Metrics

This is a custom istanbuljs reporter to generate coverage metrics to AWS Cloudwatch Metrics.

Installing

In your project:

npm install -i istanbul-reporter-aws-cloudwatch-metrics --save-dev

Then run nyc with this custom reporter via the command line:

nyc --reporter=istanbul-reporter-aws-cloudwatch-metrics mocha

Or, change your npm scripts for your project in package.json:

  (...)
  "scripts": {
    "test": "nyc --reporter=istanbul-reporter-aws-cloudwatch-metrics mocha"
  },
  (...)

Getting Started

After running nyc and having your coverage results you'll have a coverage/metric_data.json file ready to be published to AWS Cloudwatch Metrics with:

aws cloudwatch put-metric-data --namespace "MyTestNamespace" --metric-data file://./coverage/metric_data.json

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Custom istanbuljs reporter to generate coverage metrics to AWS Cloudwatch Metrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published