@@ -78,8 +78,9 @@ class Params {
7878 if ( this . report && ! this . startDelay )
7979 this . startDelay = 4000 ;
8080
81- for ( const paramKey of [ "tag" , "tags" , "test" , "tests" ] )
81+ for ( const paramKey of [ "tag" , "tags" , "test" , "tests" ] ) {
8282 this . testList = this . _parseTestListParam ( sourceParams , paramKey ) ;
83+ }
8384
8485 this . testIterationCount = this . _parseIntParam ( sourceParams , "iterationCount" , 1 ) ;
8586 this . testWorstCaseCount = this . _parseIntParam ( sourceParams , "worstCaseCount" , 1 ) ;
@@ -94,14 +95,18 @@ class Params {
9495 return this . testList ;
9596 let testList = [ ] ;
9697 if ( sourceParams ?. getAll ) {
97- testList = sourceParams ?. getAll ( key ) ;
98+ for ( const param of sourceParams ?. getAll ( key ) ) {
99+ testList . push ( ...param . split ( "," ) ) ;
100+ }
98101 } else {
99102 // fallback for cli sourceParams which is just a Map;
100103 testList = sourceParams . get ( key ) . split ( "," ) ;
101104 }
105+ testList = testList . map ( each => each . trim ( ) ) ;
102106 sourceParams . delete ( key ) ;
103- if ( this . testList . length > 0 && testList . length > 0 )
107+ if ( this . testList . length > 0 && testList . length > 0 ) {
104108 throw new Error ( `Overriding previous testList='${ this . testList . join ( ) } ' with ${ key } url-parameter.` ) ;
109+ }
105110 return testList ;
106111 }
107112
0 commit comments