code-coverage-subfolder-example [![renovate-app badge][renovate-badge]][renovate-app] [](https://circleci.com/gh/bahmutov/code-coverage-subfolder-example/tree/master)

January 7, 2020 ยท View on GitHub

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.