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.
Install this addon by running the following command:
ddev get Metadrop/ddev-lighthouse
Once installed, make sure to restart your ddev project:
ddev restart
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.
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.
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