A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bahmutov/code-coverage-subfolder-example below:

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

code-coverage-subfolder-example

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

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4