Skip to content

Commit 48f53d3

Browse files
committed
allow use of custom path to feature filles
1 parent daf6b96 commit 48f53d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var config = {
2626
steps: './step-definitions',
2727
pageObjects: './page-objects',
2828
sharedObjects: './shared-objects',
29+
featureFiles: './features',
2930
reports: './reports',
3031
browser: 'chrome',
3132
browserTeardownStrategy: 'always',
@@ -50,7 +51,7 @@ program
5051
.option('-d, --disableLaunchReport [optional]', 'Disables the auto opening the browser with test report')
5152
.option('-j, --junit <path>', 'output path to save junit-report.xml defaults to ' + config.reports)
5253
.option('-t, --tags <tagName>', 'name of tag to run', collectPaths, [])
53-
.option('-f, --featureFiles <paths>', 'comma-separated list of feature files to run')
54+
.option('-f, --featureFiles <paths>', 'comma-separated list of feature files to run or path to directory defaults to ' + config.featureFiles, config.featureFiles)
5455
.option('-x, --timeOut <n>', 'steps definition timeout in milliseconds. defaults to ' + config.timeout, coerceInt, config.timeout)
5556
.option('-n, --noScreenshot [optional]', 'disable auto capturing of screenshots when an error is encountered')
5657
.parse(process.argv);

0 commit comments

Comments
 (0)