https://github.com/justinribeiro/lighthouse-mocha-example
Sample using lighthouse and lighthouse-core with Mocha to run tests on your project/site.
https://github.com/justinribeiro/lighthouse-mocha-example
lighthouse testing webperf
Last synced: 7 months ago
JSON representation
Sample using lighthouse and lighthouse-core with Mocha to run tests on your project/site.
- Host: GitHub
- URL: https://github.com/justinribeiro/lighthouse-mocha-example
- Owner: justinribeiro
- License: apache-2.0
- Created: 2016-11-18T19:20:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-18T20:30:16.000Z (almost 9 years ago)
- Last Synced: 2025-02-23T15:06:57.979Z (8 months ago)
- Topics: lighthouse, testing, webperf
- Language: JavaScript
- Size: 11.7 KB
- Stars: 59
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lighthouse-mocha-example
> Using lighthouse and lighthouse-core with Mocha to run tests on your project/site.
Basic example that gathers performance metrics via [Lighthouse](https://github.com/GoogleChrome/lighthouse/) and tests them in Mocha. Tested against Chrome headless_shell (available via my [Docker container](https://hub.docker.com/r/justinribeiro/chrome-headless/))

## Try it out!
```sh
$ docker pull justinribeiro/chrome-headless
$ docker run -d --net host justinribeiro/chrome-headless
$ git clone git@github.com:justinribeiro/lighthouse-mocha-example.git
$ cd lighthouse-mocha-example
$ npm install
$ npm test
```## But I want to run this on Travis CI!
Indeed you can. See the included `.travis.yml` to give you a basic idea of how it works or see the screenshot below.