lighthouse-ci icon indicating copy to clipboard operation
lighthouse-ci copied to clipboard

How do I specify assertions in CLI flag?

Open ggarnier opened this issue 2 years ago • 2 comments

I'm automating some lighthouse-ci runs, and I need to customize some configurations using CLI flags, but I'm having a hard time trying to use --assertions flag in CLI. The docs only show a simple example (--assertions.speed-index=off, which works fine), but I don't know how can I set minScore. Is that supported?

ggarnier avatar Sep 01 '23 20:09 ggarnier

I just found out that this works:

lhci assert --assertions.speed-index=error --assertions.speed-index.minScore=0.9

But I still don't know how do I set categories:performance minScore in CLI.

ggarnier avatar Sep 01 '23 20:09 ggarnier

This works for me: lhci autorun --assert.assertions.'categories:pwa'=error --assert.assertions.'categories:pwa'.minScore=0.5

bjon avatar May 31 '24 15:05 bjon