Open ps185367 opened 2 years ago
After more testing it seems the problem is with categories:accessibility in particular as using categories:performance in the above command works as expected. I've noticed misspelling assertions causes an error message but I receive no such error message for categories:accessibility. For reference, viewing the collect file confirms a score of 94 was given for accessibility so it should be failing.
Does not work for me either. Cannot get lhci to fail on accessibility with minScore.
Edit: does work for me, oddly I had to remove a budget.json file I was using in a github action.
{
"ci": {
"assert": {
"assertions": {
"categories:accessibility": [
"error",
{
"minScore": 0.9
}
]
}
},
....
That results in this:
I'm trying to move away from using a configuration file to using just flags but having trouble converting specific assertions with min scores. Here is the example of what I'm trying to do but it doesn't seem to be working as expected.
lhci assert --assertions.categories:accessibility="['error', { minScore: 0.95 }]"
All of the documented examples show how to turn off an assertion but not how to pass on things like minScore. Thanks.