Skip to content

keyan1603/lighthouseAutomation

Repository files navigation

Node 16.20.0 is a pre-requisite on which this code works well. On other node versions, it might fail.

If you have multiple node versions, try managing using NVM

LightHouse Performance testing automation

  • You can use this for running LightHouse Performance testing automation

Data Source

  • Inside ./resources/data.json, provide URL and page name that you want to give.

How to run

  • open your terminal at root directory and execute -
    • npm i -g lighthouse
    • npm install
    • npm run start
  • wait till execution is complete.
  • Now Go to ./Reports/{latest date and time}
  • Refer you report corresponding to each URL

Code updated from https://github.com/akagupta9/lighthouse-wrapper