lighthouse-ci
lighthouse-ci copied to clipboard
No proper result of assertions when lighthouse runs with multiple url
I simply get the response as shown in the screenshot. It does not give any score about the assertion and exits without any valuable information. Further, a .lighthouseci
directory is created that contains a file assertion-results.json
which always has an empty array.
Also When I run lhci autorun
in CI/CD pipeline it always passes.
Here is the content of my config file (lighthouserc.js)
module.exports = {
ci: {
collect: {
url: [
'http://localhost:5000/page1',
'http://localhost:5000/page2',
'http://localhost:5000/page3,
'http://localhost:5000/page4',
'http://localhost:5000/page5,
'http://localhost:5000/page6,
'http://localhost:5000/page7',
]
},
assert: {
assertions: {
'categories:accessibility': [
'error',
{ minScore: 0.9, aggregationMethod: 'median-run' }
]
}
}
}
}
Any luck with the above probelm