storybook-code-coverage icon indicating copy to clipboard operation
storybook-code-coverage copied to clipboard

Combining Storybook, Cypress and Jest Code Coverage

Combining Storybook, Cypress and Jest Code Coverage

Please refer to this blog post for more detailed information.

This project shows how to collect code coverage from Storybook (e.g. when using Chromatic for Visual Regression tests) and how to create a combined code coverage report for 3 types of test:

You can view a report for each type of test, or view the coverage of all tests together.

To try out this project this locally:

git clone [email protected]:penx/storybook-code-coverage.git
cd storybook-code-coverage
yarn
yarn coverage
open coverage/merged/lcov-report/index.html

Combining coverage

You can also merge reports with codecov.

Known issues