@genexus/lighthouse-inspector

2.1.0 • Public • Published

lighthouse-inspector

A CLI for running Google Lighthouse on a set of URLs, specifying expected scores for audits and categories.

The goal of this CLI is to ease automating tests on a set of pages, using Lighthouse.

Prerequisites

Node 6.10.0 or higher, together with NPM 3 or higher.

Installing

npm install -g @genexus/lighthouse-inspector
# or
npm install --save-dev @genexus/lighthouse-inspector

Usage

lighthouse-inspector --config /path/to/config

The config option lets you specify the path to the configuration file. This JSON file lets you specify the set of URLs to be tested, the expected scores and, if needed, the Lighthouse configuration. Check the configuration file documentation for more information.

When an expected score isn't met, a message explaining which category or audit didn't meet the expected score is shown.

Running the tests

npm test

Built With

License

MIT

/@genexus/lighthouse-inspector/

    Package Sidebar

    Install

    npm i @genexus/lighthouse-inspector

    Weekly Downloads

    6

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    350 kB

    Total Files

    12

    Last publish

    Collaborators

    • ggallotti
    • gerasiz
    • genexusbuilder
    • anaberta
    • dscaffo