Skip to content

Commit ed4b371

Browse files
committed
Merge pull request #67 from soulgalore/medianRun
Choose which run to use as median
2 parents 58a9df9 + b61219e commit ed4b371

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ _The default WPT server can also be specified via environment variable `WEBPAGET
147147
* **-p, --pagespeed**: include the PageSpeed score in the response (may be slower)
148148
* **-R, --requests**: include the request data in the response (slower and results in much larger responses)
149149
* **-m, --median** _\<metric\>_: set the metric used to calculate median for multiple runs tests [loadTime]
150+
* **--medianrun** _\<metric>_: set the run used for median for multiple runs tests [median]
150151
* **-S, --specs** _\<json_or_file\>_: set the specs for performance test suite
151152
* **-r, --reporter** _\<name\>_: set performance test suite reporter output: [dot]|spec|tap|xunit|list|progress|min|nyan|landing|json|doc|markdown|teamcity
152153

lib/mapping.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,12 @@ var options = {
528528
param: 'metric',
529529
info: 'set the metric used to calculate median for multiple runs tests [loadTime]'
530530
},
531+
'medianrun': {
532+
name: 'medianRun',
533+
api: 'medianRun',
534+
param: 'metric',
535+
info: 'set the run used for median for multiple runs tests [median]'
536+
},
531537
'specs': {
532538
name: 'specs',
533539
key: 'S',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
-p, --pagespeed include the PageSpeed score in the response (may be slower)
1212
-R, --requests include the request data in the response (slower and results in much larger responses)
1313
-m, --median <metric> set the metric used to calculate median for multiple runs tests [loadTime]
14+
--medianrun <metric> set the run used for median for multiple runs tests [median]
1415
-S, --specs <json_or_file> set the specs for performance test suite
1516
-r, --reporter <name> set performance test suite reporter output: [dot]|spec|tap|xunit|list|progress|min|nyan|landing|json|doc|markdown|teamcity
1617
-e, --request <id> echo request ID, useful to track asynchronous requests
17-

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070
--pagespeed include the PageSpeed score in the response (may be slower)
7171
--requests include the request data in the response (slower and results in much larger responses)
7272
--median <metric> set the metric used to calculate median for multiple runs tests [loadTime]
73+
--medianrun <metric> set the run used for median for multiple runs tests [median]
7374
--specs <json_or_file> set the specs for performance test suite
7475
--reporter <name> set performance test suite reporter output: [dot]|spec|tap|xunit|list|progress|min|nyan|landing|json|doc|markdown|teamcity
75-

0 commit comments

Comments
 (0)