0.0.1 • Published 4 years ago

lighthouse-test v0.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Lighthouse Testing

A simple CLI tool for automated lighthouse testing.

Setup

Intstall

yarn add lighthouse-test

Run

lighthouse-test https://google.com 50
# First param is the URL to test
# Second param is the minimum score required to pass the test

Use In Project

package.json

{
  // ...
  "scripts": {
    "lighthouse": "lighthouse-test http://localhost:9000 90"
  }
  // ..
}

Future Improvements

  • Use a config file, or config settings in package.json
  • Multiple URLS
  • Turn off certain tests, i.e. ignore PWA score

Inspiration

Code & concepts inspired by this article.