currents-dev / currents-playwright-coverage-example

An example repository on how to setup Coverage with Currents and Playwright

Repository from Github https://github.comcurrents-dev/currents-playwright-coverage-exampleRepository from Github https://github.comcurrents-dev/currents-playwright-coverage-example

Currents Coverage with Playwright

Playwright code coverage for Currents.

This is a simple NextJS application. It uses Babel and Instanbul for instrumentating the code, then Playwright runs a set of e2e tests and send the results to Currents for post-processing.

currents-2024-11-21-16 21 20@2x

Setup

  • Install dependencies with npm install

  • Update playwright.config.ts with Currents record key and project id

  • Run npm run test for running tests, behind the scenes:

    • starts NextJS in dev mode
    • runs playwright tests
    • send coverage reports to Currents for post-processing

Examples

  • Run npm run test:e2e for using pwc command
  • Run npm run test:e2e:pwc-p for orchestrated runs

Licence

MIT License

About

An example repository on how to setup Coverage with Currents and Playwright

License:MIT License


Languages

Language:TypeScript 70.7%Language:MDX 16.6%Language:CSS 9.5%Language:JavaScript 3.2%