Set code coverage with Istanbul for React app. Displays code coverage on the browser for manual testing.
This is a demo project for istanbul-coverage-display
, a React component to be used to measure code coverage of React app,
especially when we are manually testing.
For more details, check the github page of the component or read my blog post.
- Clone the repo.
- Install dependencies -
yarn
. - Run the app -
yarn start
. - Browse to localhost:8080.
- After page loads, click Coverage button in the bottom left.
- The coverage is not 100%.
- Click the
+1
button. - Click coverage button again.
- The coverage is 100%.