Skip to content

penx/storybook-code-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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