Add test to check code usage coverage #495
Labels
infrastructure
Infrastructure surrounding the development of the library (CI, tests, scripts).
tests
Unit and e2e testing.
Milestone
Chrome DevTools has an option to get code coverage reports (how many functions/bytes are unused in JS code).
I think we can add another one e2e test, where we can create as much as possible API objects, call a lot of API methods and then get coverage report and compare it with some value (like we did for size or type coverage).
See https://github.com/puppeteer/puppeteer/blob/v4.0.0/docs/api.md#pagecoverage, https://github.com/puppeteer/puppeteer/blob/v4.0.0/docs/api.md#class-coverage.
Related to #496.
The text was updated successfully, but these errors were encountered: