ocavue / jest-puppeteer-istanbul

Collect code coverage information from end-to-end jest puppeteer tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coverage for Chrome extension

vogloblinsky opened this issue · comments

Hi,

Did you know if is it possible to get code coverage for JavaScript code used inside a Chrome extension loaded in Puppeteer ?

I always got this after setuping your plugin :

------------------|---------|----------|---------|---------|-------------------
File              | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
------------------|---------|----------|---------|---------|-------------------
All files         |       0 |        0 |       0 |       0 |
 src              |       0 |        0 |       0 |       0 |
  background.js   |       0 |      100 |       0 |       0 | 5-8
  groupbox.js     |       0 |        0 |       0 |       0 | 8-837
 src/utils        |       0 |        0 |       0 |       0 |
  translations.js |       0 |        0 |       0 |       0 | 1-26
  utils.js        |       0 |      100 |       0 |       0 | 1-6
------------------|---------|----------|---------|---------|-------------------

Thanks

@vogloblinsky Sorry for the late response. I don't know how to develop a Chrome extension with Puppeteer, so I'm not sure what went wrong. If your project is open-source, I can try to check it out and see if I can find a solution.

Closing this issue because it's stale. Feel free to re-open it if anyone has more information.