-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs]: Confusing documentation about code coverage #32216
Comments
Hey Alex! This page contains API docs for a chromium-only coverage API. You're right that it doesn't provide guidance on how to set up coverage for your project - we don't have a great place for that in the docs, yet. In the meantime you can refer to #7030. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Page(s)
https://playwright.dev/docs/next/api/class-coverage
Description
The example on the page shows a single test and how coverage reporting is started in the beginning and stopped at the end of the test. It's unclear how to use the code coverage start and stop functions for a group of more than one tests which is almost always the case when we need coverage. I need information how to start the coverage reporting before all tests and stop the reporting after all the tests have passed. Or is coverage supposed to be started and stopped on every test?
The text was updated successfully, but these errors were encountered: