Skip to content
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

Closed
alex-vukov opened this issue Aug 19, 2024 · 1 comment
Closed

[Docs]: Confusing documentation about code coverage #32216

alex-vukov opened this issue Aug 19, 2024 · 1 comment

Comments

@alex-vukov
Copy link

alex-vukov commented Aug 19, 2024

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?

@Skn0tt
Copy link
Member

Skn0tt commented Aug 19, 2024

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.

@Skn0tt Skn0tt closed this as completed Aug 19, 2024
@Skn0tt Skn0tt closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants