This project runs e2e tests with the goal of calculating total code coverage, which requires a special Playwright configuration to run all tests in a single browser instance.
the project structure was created with:
npm init playwright@latest
npm install
- Start bce.design frontend first from folder
bce.design/appwith e.g.browser-sync src --files src -b "google chrome" --single --no-notify - Run the tests in browser:
npx playwright testor with test UI:npx playwright test --ui - The coverage reports are stored in:
./coverage-report/. Openindex.htmlin browser. - The test reports are stored in
test-resultsfolder. Open test reports:npx playwright show-report