Skip to content

Commit 6bac270

Browse files
committed
Fixed tests, bumped version.
1 parent d57bc48 commit 6bac270

File tree

4 files changed

+7
-28
lines changed

4 files changed

+7
-28
lines changed

README.md

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +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)
148+
* **--lighthouse**: perform lighthouse test (Chrome only, Linux agent only)
149149

150150
#### API Key (works for **test** and **cancel** commands)
151151
* **-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)
@@ -473,6 +473,7 @@ wpt.runTest(script, (err, data) => {
473473
* **pollResults**: _Number_, poll for results after test is scheduled at every <interval> seconds [5]
474474
* **waitResults**: _String_, wait for test results informed by agent once complete listening on <hostname>:<port> [hostname:first port available above 8000]
475475
* **timeout**: _String_, timeout for polling and waiting results [no timeout]
476+
* **lighthouse**: _Boolean_, perform lighthouse test (Chrome only, Linux agent only)
476477

477478
#### API Key (works for `runTest` and `cancelTest` methods)
478479
* **key**: _String_, API key (if assigned). Contact the WebPageTest server administrator for a key if required
@@ -687,25 +688,6 @@ WebPageTest API Wrapper provides a simple seamless way to integrate WebPageTest
687688
$ npm test
688689
```
689690

690-
## Changelog
691-
692-
* 0.3.3: Fixed bug when specs check for zeroed metric
693-
* 0.3.2: Updated deps and fixed test runs with specs
694-
* 0.3.1: Added dummy url when scripting, needed for webdriver scripting on mobbile agents
695-
* 0.3.0: Replaced xmlResult.php by jsonResult.php WPT API endpoint for fetching test results
696-
* 0.2.5: Added test options: custom, chrometrace, callstack, tester; Added chrometrace command (`getChromeTraceData` method)
697-
* 0.2.4: Added test options: clearcerts, medianvideo, datareduction, useragent and tsview; HTTPS support to listen/proxy server
698-
* 0.2.3: Updated DevTools Timeline API url endpoint for timeline command
699-
* 0.2.2: Added response body command/method
700-
* 0.2.1: Added history, video, player, googleCsi commands and continuous option
701-
* 0.2.0: Replaced jsonml by xml2js dependency
702-
* 0.1.3: Test results extra data (breakdown, domains, requests, pagespeed)
703-
* 0.1.0: Specs (CI); Run in batch; Node methods/options as command aliases; new Chrome test options
704-
* 0.0.4: Sync test with results via `--poll` or `--wait`
705-
* 0.0.3: Custom test results median metric; Custom waterfall; new Chrome test options
706-
* 0.0.2: Minor bugs; 2 new commands: testers and testinfo
707-
* 0.0.1: Initial release
708-
709691
## Issues
710692

711693
Have a bug/feature request? Please create an issue here on GitHub!
@@ -721,10 +703,7 @@ https://github.com/marcelduran/webpagetest-api/issues
721703
## License
722704

723705
Copyright 2013 Twitter Inc.
724-
Copyright 2015 Google Inc.
725-
Copyright 2015 Marcel Duran and other contributors
706+
Copyright 2017 Google Inc.
707+
Copyright 2017 Marcel Duran and other contributors
726708

727709
Licensed under the [MIT License](https://github.com/marcelduran/webpagetest-api/raw/master/LICENSE)
728-
729-
730-
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/marcelduran/webpagetest-api/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

lib/mapping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ var options = {
228228
name: 'lighthouse',
229229
api: 'lighthouse',
230230
bool: true,
231-
info: 'perform lighthouse test (Chrome-only, Linux agents only)'
231+
info: 'perform lighthouse test (Chrome only, Linux agent only)'
232232
},
233233

234234
// Auth tab

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpagetest",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"description": "WebPageTest API wrapper for NodeJS",
55
"author": "Marcel Duran <[email protected]> (http://github.com/marcelduran)",
66
"homepage": "http://github.com/marcelduran/webpagetest-api",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
-Q, --datareduction enable data reduction on Chrome 34+ Android (Chrome only)
3636
-x, --useragent <string> custom user agent string (Chrome only)
3737
-X, --cmdline <switches> use a list of custom command line switches (Chrome only)
38+
--lighthouse perform lighthouse test (Chrome only, Linux agent only)
3839
-g, --login <username> username for authenticating tests (http authentication)
3940
-w, --password <password> password for authenticating tests (http authentication)
4041
-t, --sensitive discard script and http headers in the result
@@ -75,4 +76,3 @@
7576
--medianrun <metric> set the run used for median for multiple runs tests [median]
7677
--specs <json_or_file> set the specs for performance test suite
7778
--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)