admin管理员组

文章数量:1317123

I've just discovered an interesting function in Chrome, to show which parts of the code are not being used in the running page/application.

More details here: Chrome devtools Coverage

I wasn't able to find and alternative for Firefox, does anybody know if it exists natively in the browser, or if there are any extensions capable of the same functionality?

Thanks

I've just discovered an interesting function in Chrome, to show which parts of the code are not being used in the running page/application.

More details here: Chrome devtools Coverage

I wasn't able to find and alternative for Firefox, does anybody know if it exists natively in the browser, or if there are any extensions capable of the same functionality?

Thanks

Share Improve this question asked Oct 30, 2020 at 9:46 funder7funder7 1,87721 silver badges33 bronze badges 2
  • 1 Note that Chrome's code coverage tool currently only checks the coverage on a single page. I.e. if you have different pages on your website using different parts of your CSS or JavaScript, the coverage is actually higher than shown by that tool. Also, your code may have parts working only in a specific browser, e.g. prefixed CSS properties, which are not recognized by that tool. These two restrictions limit its usefulness. – Sebastian Zartner Commented Oct 30, 2020 at 21:30
  • This could make possible to have coverage using Firefox in Playwright, a feature I miss a lot. – Jean Claveau Commented Sep 24, 2022 at 20:28
Add a ment  | 

1 Answer 1

Reset to default 8

The simple but unfortunate answer is no, Firefox (version 82) doesn't include a code coverage tool and there isn't any Firefox extension allowing to do that so far.

There is only an enhancement request asking for adding a code coverage feature like the one in Chrome.

本文标签: javascriptAlternative for Chrome39s Coverage in FirefoxStack Overflow