{"id":15381905,"url":"https://github.com/justinribeiro/lighthouse-mocha-example","last_synced_at":"2025-02-28T08:30:25.089Z","repository":{"id":146785815,"uuid":"74159533","full_name":"justinribeiro/lighthouse-mocha-example","owner":"justinribeiro","description":"Sample using lighthouse and lighthouse-core with Mocha to run tests on your project/site.","archived":false,"fork":false,"pushed_at":"2016-11-18T20:30:16.000Z","size":12,"stargazers_count":59,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-23T15:06:57.979Z","etag":null,"topics":["lighthouse","testing","webperf"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justinribeiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-18T19:20:52.000Z","updated_at":"2023-03-05T23:32:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"f40128ab-f804-4856-aa8e-54dd2150c453","html_url":"https://github.com/justinribeiro/lighthouse-mocha-example","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"73eace336d1b3aa69599e837139e14530097264a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinribeiro%2Flighthouse-mocha-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinribeiro%2Flighthouse-mocha-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinribeiro%2Flighthouse-mocha-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinribeiro%2Flighthouse-mocha-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinribeiro","download_url":"https://codeload.github.com/justinribeiro/lighthouse-mocha-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241124386,"owners_count":19913832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lighthouse","testing","webperf"],"created_at":"2024-10-01T14:29:12.690Z","updated_at":"2025-02-28T08:30:25.078Z","avatar_url":"https://github.com/justinribeiro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lighthouse-mocha-example\n\n\u003e Using lighthouse and lighthouse-core with Mocha to run tests on your project/site.\n\nBasic 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/))\n\n![image](https://cloud.githubusercontent.com/assets/643503/20443720/dc1b9dac-ad82-11e6-97d8-f07f40dc79c6.png)\n\n## Try it out!\n```sh\n$ docker pull justinribeiro/chrome-headless\n$ docker run -d --net host justinribeiro/chrome-headless\n$ git clone git@github.com:justinribeiro/lighthouse-mocha-example.git\n$ cd lighthouse-mocha-example\n$ npm install\n$ npm test\n```\n\n## But I want to run this on Travis CI!\nIndeed you can. See the included `.travis.yml` to give you a basic idea of how it works or see the screenshot below.\n\n![image](https://cloud.githubusercontent.com/assets/643503/20445616/9f00226e-ad8a-11e6-9e47-bc65cc1f9a81.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinribeiro%2Flighthouse-mocha-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinribeiro%2Flighthouse-mocha-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinribeiro%2Flighthouse-mocha-example/lists"}