Example for Playwright Coverage Reports
npm i monocart-coverage-reports -D
- Create
autoTestFixture
for collecting coverage data, see fixtures.ts - Create global.setup.ts and global-teardown.ts for generating coverage reports
- Set coverage options in config mcr.config.ts
- Playwright config playwright.config.ts
npm run test
The coverage report will be found here: coverage-reports/index.html
Check repo monocart coverage reports for more options.