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/app
with e.g.browser-sync src --files src -b "google chrome" --single --no-notify
- Run the tests in browser:
npx playwright test
or with test UI:npx playwright test --ui
- The coverage reports are stored in:
./coverage-report/
. Openindex.html
in browser. - The test reports are stored in
test-results
folder. Open test reports:npx playwright show-report