Skip to content

Commit b4dd5c3

Browse files
committed
lighthouse support
1 parent ca0384c commit b4dd5c3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ _The default WPT server can also be specified via environment variable `WEBPAGET
145145
* **--poll** _\<interval\>_: poll for results after test is scheduled at every <interval> seconds [5]
146146
* **--wait** _\<hostname:port\>_: wait for test results informed by agent once complete listening on <hostname>:<port> [hostname:first port available above 8000]
147147
* **--timeout** _\<seconds\>_: timeout for polling and waiting results [no timeout]
148+
* **--lighthouse**: run lighthouse test (Chrome only, Linux agent only)
148149

149150
#### API Key (works for **test** and **cancel** commands)
150151
* **-k, --key** _\<api_key\>_:API key (if assigned). Contact the WebPageTest server administrator for a key if required or request an API key for limited testing at [webpagetest.org/getkey.php](https://www.webpagetest.org/getkey.php)

lib/mapping.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,12 @@ var options = {
224224
param: 'switches',
225225
info: 'use a list of custom command line switches (Chrome only)'
226226
},
227+
'lighthouse': {
228+
name: 'lighthouse',
229+
api: 'lighthouse',
230+
bool: true,
231+
info: 'perform lighthouse test (Chrome-only, Linux agents only)'
232+
},
227233

228234
// Auth tab
229235
'login': {

test/fixtures/command-line/help-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@
7575
--medianrun <metric> set the run used for median for multiple runs tests [median]
7676
--specs <json_or_file> set the specs for performance test suite
7777
--reporter <name> set performance test suite reporter output: [dot]|spec|tap|xunit|list|progress|min|nyan|landing|json|doc|markdown|teamcity
78+
--lighthouse run lighthouse test (Chrome only, Linux agent only)

0 commit comments

Comments
 (0)