Home

Awesome

Use Istanbul coverage collection with Playwright Test

Coverage Status CI

This example demonstrates how to use vite-plugin-istanbul to collect coverage data during runtime with your end-to-end tests which will be stored on the filesystem. When applying the shown parts, you are able to view the coverage report e.g. as HTML, or convert it to the lcov format for upload to Coveralls or other similar providers. In this example, we are using GitHub Actions to run the tests and upload them to Coveralls.

Prerequisites

Usage

Coverage formats

Helpful commands are the following:

Used tools

Using with @playwright/experimental-ct-react

See this version in the ct-react-vite branch.

Using create-react-app / Webpack

See this archived version in the create-react-app branch.