https://github.com/currents-dev/currents-playwright-coverage-example
An example repository on how to setup Coverage with Currents and Playwright
https://github.com/currents-dev/currents-playwright-coverage-example
Last synced: 10 months ago
JSON representation
An example repository on how to setup Coverage with Currents and Playwright
- Host: GitHub
- URL: https://github.com/currents-dev/currents-playwright-coverage-example
- Owner: currents-dev
- License: mit
- Created: 2024-11-12T15:25:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-12T04:48:42.000Z (about 1 year ago)
- Last Synced: 2025-04-11T18:05:04.916Z (10 months ago)
- Language: TypeScript
- Size: 20.1 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Currents Coverage with Playwright
Playwright [code coverage](https://docs.currents.dev/guides/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.

## Setup
- Install dependencies with `npm install`
- Update `playwright.config.ts` with Currents [record key](https://docs.currents.dev/guides/record-key) and [project id](https://docs.currents.dev/dashboard/projects/project-settings)
- 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`](https://docs.currents.dev/getting-started/playwright/you-first-playwright-run#using-the-cli) command
- Run `npm run test:e2e:pwc-p` for [orchestrated](https://docs.currents.dev/guides/parallelization-guide/pw-parallelization/playwright-orchestration) runs
## Licence
MIT License