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

No proper result of assertions when lighthouse runs with multiple url

Open sabhas opened this issue 2 years ago • 1 comments

Screenshot from 2022-06-23 19-01-20

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' }
        ]
      }
    }
  }
}

sabhas avatar Jun 23 '22 14:06 sabhas

Any luck with the above probelm

abhijithss2010 avatar Nov 16 '23 13:11 abhijithss2010