This is automation performance tester using lighthouse and chrome-launcher
npm install @seolhun/web-performance-tester
# or
yarn add @seolhun/web-performance-tester
- One configuration, All routes are audited.
- Simple testing flow with the json file configuration
Read lighthouse contents, Here
Set WPT configuration
// wpt.config.json
{
"name": "Seolhun_Github" // Required
"origin": "https://github.com/Seolhun", // Required
"auditPaths": [{
{
"name": "web-performance-tester",
"pathname": "/web-performance-tester"
}
}], // Required
"timeout": 30000, // default : 30000
"useReporter": true, // default : true
"options": {
"chromeFlags": ["--headless"], // default : ["--headless"] - ["--show-paint-rects", "--headless", "--disable-gpu"]
"formFactor": "desktop", // default : "mobile" - desktop, mobile
"output": "html", // default : "html" - json, html, csv
"outputPath": "reports", // default : "reports"
"port": 8080 // default : 8080
},
}
npm install
npm run build
npm run lh
- Examples Code here
- See Default Example!