@@ -23,11 +23,11 @@ function coerceInt(value, defaultValue) {
2323}
2424
2525var config = {
26- step_def_dir : './step-definitions' ,
27- page_obj_dir : './page-objects' ,
28- shared_obj_dir : './shared-objects' ,
29- reports_dir : './reports' ,
30- default_browser : 'chrome' ,
26+ steps : './step-definitions' ,
27+ pageObjects : './page-objects' ,
28+ sharedObjects : './shared-objects' ,
29+ reports : './reports' ,
30+ browser : 'chrome' ,
3131 timeout : 10000
3232} ;
3333
@@ -40,13 +40,13 @@ if (fs.isFileSync(configFileName)) {
4040program
4141 . version ( pjson . version )
4242 . description ( pjson . description )
43- . option ( '-s, --steps <path>' , 'path to step definitions. defaults to ' + config . step_def_dir , config . step_def_dir )
44- . option ( '-p, --pageObjects <path>' , 'path to page objects. defaults to ' + config . page_obj_dir , config . page_obj_dir )
45- . option ( '-o, --sharedObjects [paths]' , 'path to shared objects (repeatable). defaults to ' + config . shared_obj_dir , collectPaths , [ config . shared_obj_dir ] )
46- . option ( '-b, --browser <path>' , 'name of browser to use. defaults to ' + config . default_browser , config . default_browser )
47- . option ( '-r, --reports <path>' , 'output path to save reports. defaults to ' + config . reports_dir , config . reports_dir )
43+ . option ( '-s, --steps <path>' , 'path to step definitions. defaults to ' + config . steps , config . steps )
44+ . option ( '-p, --pageObjects <path>' , 'path to page objects. defaults to ' + config . pageObjects , config . pageObjects )
45+ . option ( '-o, --sharedObjects [paths]' , 'path to shared objects (repeatable). defaults to ' + config . sharedObjects , collectPaths , [ config . sharedObjects ] )
46+ . option ( '-b, --browser <path>' , 'name of browser to use. defaults to ' + config . browser , config . browser )
47+ . option ( '-r, --reports <path>' , 'output path to save reports. defaults to ' + config . reports , config . reports )
4848 . option ( '-d, --disableLaunchReport [optional]' , 'Disables the auto opening the browser with test report' )
49- . option ( '-j, --junit <path>' , 'output path to save junit-report.xml defaults to ' + config . reports_dir )
49+ . option ( '-j, --junit <path>' , 'output path to save junit-report.xml defaults to ' + config . reports )
5050 . option ( '-t, --tags <tagName>' , 'name of tag to run' )
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 )
0 commit comments