Continuous Coverage
How to measure Continuous Coverage?
Last updated
How to measure Continuous Coverage?
Last updated
Continuous Coverage helps you measure the coverage of requests made to your application in real time. Once you start your app, Hypertest will begin tracking coverage from the beginning.
This feature supports two modes:
RECORD
DISABLED
Make sure you go through the steps to add nyc to your project before this.
Follow these steps to enable and measure Continuous Coverage using Hypertest:
Make Sure you set the when measuring continuous coverage. It helps in accurately mapping the coverage data to the correct code version.
Add the following code snippet to your app's index.js
file:
Navigate to the Hypertest Dashboard.
Select your service and go to the Continuous Coverage page.
Click on the Measure Continuous Coverage button to start tracking.
Example:
Update the start
command in your package.json
to run your app with NYC:
Once the app is running, Hypertest will update the coverage data automatically at intervals defined by refreshIntervalInSec
(default: 60 seconds).
You can monitor the results on the Hypertest Dashboard.