Skip to content

Example collecting web app code coverage from Cypress end-to-end tests where app is in subfolder

Notifications You must be signed in to change notification settings

bahmutov/code-coverage-subfolder-example

Repository files navigation

code-coverage-subfolder-example renovate-app badge CircleCI

The web "app" is located in app folder. First, you need to instrument it using

$ npm run cc:instrument

The instrumented code is placed into instrumented folder, including index.html and main.js.

Start Cypress with

$ npm run cypress:open

After running the spec file cypress/integration/spec.js the coverage information will be saved in coverage folder, include HTML report

$ open coverage/lcov-report/index.html

Coverage information

See Cypress Code Coverage Guide and cypress-io/code-coverage for more information.

About

Example collecting web app code coverage from Cypress end-to-end tests where app is in subfolder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published