最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Alternative for Chrome's Coverage in Firefox - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论