Write HTML reports to .lighthouseci folder during collect
See original GitHub issueI’m attempting to replace a custom lighthouse test configuration with lhci. I’m not getting HTML output in .lighthouseci
, only json. I’ve attempted to define the lighthouse settings in lighthouserc.json
:
{
"ci": {
"collect": {
"settings": {
"output": ["html"],
"skipAudits": ["is-cralwable"],
"useThrottling": "true",
"onlyCategories": [
"performance",
"accessibility",
"best-practices",
"seo"
]
},
...
And also pointing to the original configuration file:
{
"ci": {
"collect": {
"settings": {
"configPath": "./tests/lighthouse/lighthouse-config.js"
},
...
with lighthouse-config.js
containing:
module.exports = {
extends: 'lighthouse:default',
settings: {
output: ['html'],
skipAudits: ['is-cralwable'],
useThrottling: true,
onlyCategories: [
'performance',
'accessibility',
'best-practices',
'seo'
],
},
}
Does LHCI not allow for HTML result pages, or am I doing something wrong?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Performance monitoring with Lighthouse CI - web.dev
A single Lighthouse report provides a snapshot of a web page's performance at the time that it is run; Lighthouse CI shows how...
Read more >Continuous Performance Analysis with Lighthouse CI and ...
In this article, we'll go over how to set up Lighthouse CI and run it ... Opens the HTML reports of collected runs...
Read more >An Introduction To Running Lighthouse Programmatically
This article contains a brief introduction to Lighthouse, discusses the advantages of running it programmatically, and walks through a basic ...
Read more >Measure the performance of a web application with ... - Medium
The second step is configuring Lighthouse CI, to do this you need to create a new file called lighthouserc.js in the root folder...
Read more >Testing static sites with Lighthouse CI and GitHub Actions
By default Lighthouse CI will run tests against every HTML file in that folder so we are also specifying that we just want...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It was just a proposal, we’ll just write the HTML reports to
.lighthouseci
for now unless there becomes more demand for afilesystem
target.Is
filesystem
currently a valid target for upload, or are you suggesting that as a solution? The docs don’t indicate it as an option currently.I agree that writing HTML reports into
.lighthouseci
is good enough for me. If you wanted to implement filesystem as a target forupload
, a possible advantage would be defining a target artifact directory, instead of having to move/point from/to.lighthouseci
in the CI system config. Up to you if that’s worth the effort.Thanks for your attention to this issue!