Skip to content

Lighthouse ddev addon based on patrickhulce/lhci-client image

License

Notifications You must be signed in to change notification settings

Metadrop/ddev-lighthouse

Repository files navigation

tests project is maintained GitHub Release

What is DDEV Lighthouse Add-on?

This is a DDEV addon for running performance tests using Lighthouse, an open-source automated tool for improving web page quality. It utilizes the tests/functional/lighthouserc.js configuration file for test setup and saves reports in the reports/lighthouse folder of your project.

This is optimized for Aljibe projects, but can be used in any DDEV project.

Lighthouse analyzes performance, accessibility, best practices, and more of your web pages, generating detailed reports to help you enhance your site's quality and performance.

Getting Started

Install this addon by running the following command:

ddev get Metadrop/ddev-lighthouse

Once installed, make sure to restart your ddev project:

ddev restart

Configuration

This addon uses the tests/functional/lighthouserc.js configuration file to customize tests according to your needs. You can modify this file following Lighthouse configuration guidelines.

Running Tests

To execute Lighthouse tests, simply access your ddev environment and run the following command:

ddev lighthouse

Lighthouse will generate detailed reports and save them in the reports/lighthouse folder of your project.

Interpreting Results

Once Lighthouse reports are generated, you can review them to identify areas for improvement in performance, accessibility, and more of your website.

Happy optimization!

Contributed and maintained by @Metadrop