playwright-test-coverage
playwright-test-coverage copied to clipboard
Can we do test coverage for component testing?
Just like Vitest/Jest, can we do a code coverage in component testing in Playwright?
In theory, the same concept of this repository can be applied to component testing. This would require adjusting the ctViteConfig to include the coverage plugin and collect it.
Thank you for adding the component testing coverage example. It is in ct-react-vite branch.
https://github.com/mxschmitt/playwright-test-coverage/tree/ct-react-vite