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

Allow cli option to run specific audits #1828

Closed
pedro93 opened this issue Mar 7, 2017 · 4 comments
Closed

Allow cli option to run specific audits #1828

pedro93 opened this issue Mar 7, 2017 · 4 comments

Comments

@pedro93
Copy link

pedro93 commented Mar 7, 2017

The title says practically everything. I don't think it is as of right now possible to tell lighthouse to run specific audits, is this something in the roadmap or not even considered?

My use case is to use pwmetrics to have a simple and easy to obtain performance metrics.

Having the option to select which ones I want, would further help me personalize the output to my situation. It is possible to filter out the results from pwmetrics and lighthouse but having an option directly at the source would be simpler :)

Thoughts?

@cheshrkat
Copy link

+1, although would also like better UI for re-running a single audit in the extension too :)

@wardpeet
Copy link
Collaborator

you have the --perf option which runs the following audits

  • First meaningful paint
  • speed index
  • Estimated input latency
  • Time to interactive
  • user timings
  • screenshots
  • Critical request chains
  • Unused css rules
  • Uses optimized images
  • Uses responsive images
  • Dom size
  • link blocking first paint
  • script blockign first paint
    see perf.json

If that doens't fit your needs, you can create your own config.json and run it with --config=<path to config>

@paulirish
Copy link
Member

In the short term, creating a custom config.json is a great solution.

In the medium term (next month or so) we plan to allow easy whitelisting of audits to run. In this case we'll want to optionally support culling the aggregations so a report can be created.

@brendankenny
Copy link
Member

custom config with safe and block lists have been added. More info here: https://github.com/GoogleChrome/lighthouse/blob/master/docs/configuration.md#example-1

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

6 participants