Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishichawda/lighthouse-mocha-example
Example using lighthouse and chrome-launcher for running lighthouse tests with mocha
https://github.com/rishichawda/lighthouse-mocha-example
chrome lighthouse-audits mocha performance test
Last synced: about 1 month ago
JSON representation
Example using lighthouse and chrome-launcher for running lighthouse tests with mocha
- Host: GitHub
- URL: https://github.com/rishichawda/lighthouse-mocha-example
- Owner: rishichawda
- License: mit
- Created: 2019-06-09T09:23:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T19:52:00.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T07:56:10.442Z (over 1 year ago)
- Topics: chrome, lighthouse-audits, mocha, performance, test
- Language: JavaScript
- Size: 239 KB
- Stars: 8
- Watchers: 0
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## lighthouse-mocha-example
Example using [lighthouse](https://github.com/GoogleChrome/lighthouse) and [chrome-launcher](https://github.com/GoogleChrome/chrome-launcher) for running lighthouse tests with mocha.
_**Note**: This example also uses `cli-table` to show data in a table format so it is easy to read the data while testing. It is not necessary that you use it since lighthouse supports HTML and JSON data output. For details on it, please read this [documentation](https://github.com/GoogleChrome/lighthouse#viewing-a-report)._
![](./.github/lighthouse-mocha-example.png)
This works with CI environments too!
Also, you might want to run this on a production build since some metrics are not available during development.