mxschmitt / playwright-test-coverage

Playwright Test (@playwright/test) demo to collect coverage information via Istanbul
MIT License
108 stars 16 forks source link

Use in a single page environment setup? #23

Open olaf-k opened 4 months ago

olaf-k commented 4 months ago

first off, thank you @mxschmitt for this very useful repo; it is a great example short of a native PW feature.

I was wondering how I would go about adapting the fixture code to work with tests reusing the same page? I understand page/context fixtures have an on-each-test lifecycle, so is there a clean way to somehow "link" them to a global page instance?