Generate Datadog metrics from Cypress test results with the help of the Mochawesome reporter
- nodejs
yarn install
yarn run cypress open
or headless
yarn run cypress run
Clean test results
yarn run pre-monitor
Run tests
yarn run monitor
Push test results to Datadog:
yarn run post-monitor
- Error handling on Metric.send in reportToDatadog.js
- Tested with Mochawesome reporting from Cypress, untested with "Vanilla" Mocha/Chai
- Set your API_KEY and APP_KEY as env variables for dogapi
- Thanks Jochum Börger and Erik Zeedijk for input and feedback