@@ -40,6 +40,7 @@ class Params {
40
40
41
41
RAMification = false ;
42
42
dumpJSONResults = false ;
43
+ dumpTestList = false ;
43
44
testIterationCountMap = new Map ( ) ;
44
45
testWorstCaseCountMap = new Map ( ) ;
45
46
@@ -60,16 +61,17 @@ class Params {
60
61
this . prefetchResources = this . _parseBooleanParam ( sourceParams , "prefetchResources" ) ;
61
62
this . RAMification = this . _parseBooleanParam ( sourceParams , "RAMification" ) ;
62
63
this . dumpJSONResults = this . _parseBooleanParam ( sourceParams , "dumpJSONResults" ) ;
64
+ this . dumpTestList = this . _parseBooleanParam ( sourceParams , "dumpTestList" ) ;
63
65
64
66
this . customPreIterationCode = this . _parseStringParam ( sourceParams , "customPreIterationCode" ) ;
65
67
this . customPostIterationCode = this . _parseStringParam ( sourceParams , "customPostIterationCode" ) ;
66
68
67
- this . startDelay = this . _parseIntParam ( sourceParams , "startDelay" , 0 ) ;
69
+ this . startDelay = this . _parseIntParam ( sourceParams , "startDelay" , 0 ) ;
68
70
if ( this . shouldReport && ! this . startDelay )
69
71
this . startDelay = 4000 ;
70
72
71
73
for ( const paramKey of [ "tag" , "tags" , "test" , "tests" ] )
72
- this . testList = this . _parseTestListParam ( sourceParams , paramKey ) ;
74
+ this . testList = this . _parseTestListParam ( sourceParams , paramKey ) ;
73
75
74
76
this . testIterationCount = this . _parseIntParam ( sourceParams , "iterationCount" , 1 ) ;
75
77
this . testWorstCaseCount = this . _parseIntParam ( sourceParams , "worstCaseCount" , 1 ) ;
@@ -81,13 +83,13 @@ class Params {
81
83
82
84
_parseTestListParam ( sourceParams , key ) {
83
85
if ( ! sourceParams . has ( key ) )
84
- return this . testList ;
86
+ return this . testList ;
85
87
let testList = [ ] ;
86
88
if ( sourceParams ?. getAll ) {
87
- testList = sourceParams ?. getAll ( key ) ;
89
+ testList = sourceParams ?. getAll ( key ) ;
88
90
} else {
89
- // fallback for cli sourceParams which is just a Map;
90
- testList = sourceParams . get ( key ) . split ( "," ) ;
91
+ // fallback for cli sourceParams which is just a Map;
92
+ testList = sourceParams . get ( key ) . split ( "," ) ;
91
93
}
92
94
sourceParams . delete ( key ) ;
93
95
if ( this . testList . length > 0 && testList . length > 0 )
0 commit comments