Lighthouse: no obvious way to print/save human readable version of report

Created on 14 Oct 2017  路  20Comments  路  Source: GoogleChrome/lighthouse

Feel like I must missing something but I've been using this tool to audit a site and an obvious scenario is to capture the output, annotate it, and email it to someone. But I can't find a way to extract a nice, human readable version. I see a download button but that results in an extension-less file that looks like it contains a json version of the report. I don't see an obvious way to download or print a text or static html version. Am I missing it? If so, maybe the feature could be displayed more prominently. If not, consider this a feature request.

DevTools P1

Most helpful comment

Plan: Add the icon and two top menu items to devtools.

screen shot 2018-01-08 at 2 28 48 pm

All 20 comments

Ah, I see the docs describe how to share reports (https://developers.google.com/web/tools/lighthouse/), so this was me not RTFMing, sorry.

I would add that I think it would be good to make the sharing functionality more apparent in the main UI flow, because I think it's a pretty common use case.

Thanks for the feedback! We'll take a look and prioritize this feature request accordingly :)


EDIT: it appears that printing to PDF is supported across mac & linux. yay.

Discussed with Paul: let's move forward and do a simple Save to PDF option for now. Marc, let me know if this doesn't work for you.

Plan: Add the icon and two top menu items to devtools.

screen shot 2018-01-08 at 2 28 48 pm

Alright, so unfortunately this is not trivial.

  • If devtools is docked (it usually is), you cannot print it. Chrome doesn't support bringing up the print dialog for that docked pane.

    • Regardless, you don't want to print the audits panel, because you get the rest of the devtools UI, and its not scrollable.

  • We can open a popup window, toss the report in there, and then trigger the print dialog.

    • However, it currently includes ALL devtools HTML, whereas we only want it to include the report HTML. Unfortunately splitting that out, handling the CSS, etc.. will be a week of work. Even then, I fear it will be too unmaintainable to commit to.

One alternative here is using the lighthouse viewer. We can easily "open in viewer" from devtools. Printing there is no problem at all.

But there are product concerns with going the viewer route we should discuss.

Let's discuss this in the next Lighthouse sync.

Will need to discuss if we want to pursue the Viewer approach.

However we can add "save as HTML" pretty painlessly.

No plans to do this, as there's little demand

+1 for demand. I see little use if I can't show a client. And they don't speak JSON. Using the viewer worked but I expected the solution to be right there. I can use this method if it's not accepted but I'm putting it out there that there might be demand.

I'm working on a Python project that will convert a Lighthouse report output into Markdown. You don't need to know Python to use it, just have Python 2.7 running on your computer and know a little CLI.

It might be ready by the end of the week or next week if you want to be an alpha tester. Its not ready for prime time yet. PM on Twitter or something and I will share a link.

I'm working on a Python project that will convert a Lighthouse report output into Markdown. You don't need to know Python to use it, just have Python 2.7 running on your computer and know a little CLI.

It might be ready by the end of the week or next week if you want to be an alpha tester. Its not ready for prime time yet. PM on Twitter or something and I will share a link.

Good effort. But if I do that I may as well use Lighthouse Viewer.

The viewer cannot be edited. We are converting to markdown so we can augment the content and add in screenshots of failing elements.

Hi @uglyeoin , My Lighthouse to Markdown project is getting close to an alpha release. It is much better than Lighthouse Viewer because it also takes screenshots of failing elements. And you can template it to display any data available in the Lighthouse JSON file. It is primarily focused on Accessibility stuff, but templates can be made for any audit.

https://github.com/OpenAssessItToolkit/openassessit

I'd love to get some feedback on it. I added a Dockerfile, so if you have Docker installed it would only take you 2 minutes to spin it up and see if it would help you.

@joelhsmith thank you for remembering me and coming back on this one. I'm a bit busy now but I will try to find some time later. I haven't used Docker - for my sins - but I definitely should have by now!

np. I'd appreciate the feedback. Docker can even be installed with a GUI with the links in the Readme.md file. You don't need to know how to use Docker to use it. If you or any people who find this thread try it out, ping me!

One alternative here is using the lighthouse viewer. We can easily "open in viewer" from devtools.

Lighthouse Viewer works really well for me, thank you!

No plans to do this, as there's little demand

Increasing demand...

@jorangreef I have built something to do this, It converts it to Markdown or HTML. It is command line only at the moment, but has a Docker version so you do not need to install anything other than Docker to try it. I'd love to get more people to test it and make feature requests.

https://github.com/OpenAssessItToolkit/openassessit

BTW, the audits panel in DevTools now supports printing. In Canary. Will be released in Chrome 77.

image

@connorjclark awesome! Then we can print to PDF :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muuvmuuv picture muuvmuuv  路  3Comments

motiejuss picture motiejuss  路  3Comments

shellscape picture shellscape  路  3Comments

wizardnet972 picture wizardnet972  路  3Comments

codepodu picture codepodu  路  3Comments