Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with Chrome Devtools Coverage #10195

Closed
jackyef opened this issue Jan 8, 2020 · 2 comments
Closed

Integration with Chrome Devtools Coverage #10195

jackyef opened this issue Jan 8, 2020 · 2 comments

Comments

@jackyef
Copy link

jackyef commented Jan 8, 2020

Chrome Devtools Coverage

Summary
Is it possible for to make lighthouse integrate with Chrome Devtools Coverage?
Basically, this is how I imagine it would be:

  1. Run lighthouse against an url, like usual
  2. Along with the usual outputs, lighthouse will also output a coverage.json from Chrome devtools
  3. Lighthouse can use this information to show the unused codes in each assets in its report
  4. Bonus: Lighthouse could show a visualisation from the coverage json using available source map (if exists), like what source-map-explorer did recently.

I couldn't find if it's actually possible currently to do this. Apologies if it already exists 🙏

@connorjclark
Copy link
Collaborator

We have the unused-javascript audit, which shows how much code is unused. It's not granular yet, but #10090 is working on that.

re: 4- #10064 is a preview of what we're doing with source maps. We have a working demo for using source-map-explorer, with plans to show coverage data too.

@jackyef
Copy link
Author

jackyef commented Jan 9, 2020

Whoa, that is awesome! Can't wait to see it live!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants