@@ -47,7 +47,7 @@ program
4747 . option ( '-r, --reports <path>' , 'output path to save reports. defaults to ' + config . reports_dir , config . reports_dir )
4848 . option ( '-d, --disableLaunchReport [optional]' , 'Disables the auto opening the browser with test report' )
4949 . option ( '-j, --junit <path>' , 'output path to save junit-report.xml defaults to ' + config . reports_dir )
50- . option ( '-t, --tags <tagName>' , 'name of tag to run' )
50+ . option ( '-t, --tags <tagName>' , 'name of tag to run' , collectPaths , [ ] )
5151 . option ( '-f, --featureFile <path>' , 'a specific feature file to run' )
5252 . option ( '-x, --timeOut <n>' , 'steps definition timeout in milliseconds. defaults to ' + config . timeout , coerceInt , config . timeout )
5353 . option ( '-n, --noScreenshot [optional]' , 'disable auto capturing of screenshots when an error is encountered' )
@@ -110,8 +110,10 @@ process.argv.push(path.resolve(program.steps));
110110
111111// add tag
112112if ( program . tags ) {
113- process . argv . push ( '-t' ) ;
114- process . argv . push ( program . tags ) ;
113+ program . tags . forEach ( function ( tag ) {
114+ process . argv . push ( '-t' ) ;
115+ process . argv . push ( tag ) ;
116+ } )
115117}
116118
117119// add strict option (fail if there are any undefined or pending steps)
0 commit comments