docs: add documentation referencing puppeteer-to-istanbul (#2135)

Fixes #1768.
This commit is contained in:
Benjamin E. Coe 2018-03-06 21:49:01 -08:00 committed by Andrey Lushnikov
parent c857aef589
commit edc510c152
2 changed files with 4 additions and 0 deletions

View File

@ -2557,6 +2557,9 @@ for (const entry of coverage) {
console.log(`Bytes used: ${usedBytes / totalBytes * 100}%`);
```
_To output coverage in a form consumable by [Istanbul](https://github.com/istanbuljs),
see [puppeteer-to-istanbul](https://github.com/istanbuljs/puppeteer-to-istanbul)._
#### coverage.startCSSCoverage(options)
- `options` <[Object]> Set of configurable options for coverage
- `resetOnNavigation` <[boolean]> Whether to reset coverage on every navigation. Defaults to `true`.

View File

@ -40,3 +40,4 @@ const browser = await puppeteer.launch({
- [angular-puppeteer-demo](https://github.com/Quramy/angular-puppeteer-demo) - Demo repository explaining how to use Puppeteer in Karma.
- [mocha-headless-chrome](https://github.com/direct-adv-interfaces/mocha-headless-chrome) - Tool which runs client-side **mocha** tests in the command line through headless Chrome.
- [puppeteer-to-istanbul-example](https://github.com/bcoe/puppeteer-to-istanbul-example) - Demo repository demonstrating how to output Puppeteer coverage in Istanbul format.