ackama / lighthouse-matchers

Provides RSpec matchers for executing and evaluating Google Chrome Lighthouse audit scores
MIT License
15 stars 1 forks source link

Only run the audits that are requested #15

Closed joshmcarthur closed 1 year ago

joshmcarthur commented 3 years ago

As a developer I want my test run to complete as quickly as possible So that I can see the results


We currently run all audits, and then just grab the result for the audit we are interested in from the JSON results. We can add an argument named --only-categories=#{@audit} (CAUTION: shell injection) to just have lighthouse run the audits we are interested in. This speeds up the lighthouse run considerably (~10s).