Skip to content

ejstone81/lighthouse-puppeteer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppeteer and Lighthouse

Using Google Puppeteer to run Google Lighthouse programmatically within a CI-CD environment and generate reports to measure performance accessibility and security on the fly.

Report sample against nature.com

Two projects

What is Lighthouse?

Google Lighthouse is an open-source, automated tool for improving the quality of web pages. You can run it against any web page, public or requiring authentication. It has audits for performance, accessibility, progressive web apps, and more.

What is Puppeteer?

Most things that you can do manually in the browser can be done using Google Puppeteer! Automate form submission, UI testing, keyboard input, etc. Create an up-to-date, automated testing environment. Run your tests directly in the latest version of Chrome using the latest JavaScript and browser features.

Setup

Install node via brew install node

Run

./build

Notes

  • Runs only Desktop compatibility tests, to run mobile pass in a different config to lighthouse
const report = await lighthouse(page.url(), opts, config).then(results => {
    return results;
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 98.7%
  • JavaScript 1.3%