File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,26 @@ class Collection {
47
47
*/
48
48
prepareRuns ( selectedRuns , config ) {
49
49
selectedRuns . forEach ( ( selectedRun ) => {
50
- const [ runName ] = selectedRun . split ( ':' ) ;
51
- const runConfig = config . multiple [ runName ] ;
50
+ const runConfig = [ ] ;
51
+ const runName = [ ] ;
52
52
53
- if ( ! runConfig ) {
54
- throw new Error ( `run ${ runName } was not configured in "multiple" section of config` ) ;
53
+ if ( selectedRun === 'all' ) {
54
+ Object . keys ( config . multiple ) . forEach ( name => {
55
+ runName . push ( name ) ;
56
+ runConfig . push ( config . multiple [ name ] ) ;
57
+ } ) ;
58
+ } else {
59
+ runName . push ( selectedRun . split ( ':' ) [ 0 ] ) ;
60
+ runConfig . push ( config . multiple [ runName [ 0 ] ] ) ;
55
61
}
56
62
57
- this . addRun ( createRun ( runName , runConfig ) ) ;
63
+ for ( let i = 0 ; i < runConfig . length ; i ++ ) {
64
+ if ( ! runConfig [ i ] ) {
65
+ throw new Error ( `run ${ runName [ i ] } was not configured in "multiple" section of config` ) ;
66
+ }
67
+
68
+ this . addRun ( createRun ( runName [ i ] , runConfig [ i ] ) ) ;
69
+ }
58
70
} ) ;
59
71
60
72
return this ;
You can’t perform that action at this time.
0 commit comments