GoogleChrome / lighthouse-ci

Automate running Lighthouse for every commit, viewing the changes, and preventing regressions
Apache License 2.0
6.33k stars 632 forks source link

feat(cli): add --lhr to assert command to load LHRs from anywhere #1024

Closed connorjclark closed 2 months ago

connorjclark commented 2 months ago

ref https://github.com/GoogleChrome/lighthouse/issues/15203

Enables usage like this:

node packages/cli/src/cli.js -no-lighthouserc assert \
  --lhr /Users/cjamcl/src/lighthouse/core/test/results/sample_v2.json \
  --budgetsFile=packages/cli/test/fixtures/budgets.json