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

How do I specify assertions in CLI flag? #942

Open
ggarnier opened this issue Sep 1, 2023 · 1 comment
Open

How do I specify assertions in CLI flag? #942

ggarnier opened this issue Sep 1, 2023 · 1 comment

Comments

@ggarnier
Copy link

ggarnier commented Sep 1, 2023

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
Copy link
Author

ggarnier commented Sep 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ggarnier and others