You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -62,36 +63,38 @@ By default tests are run using Google Chrome, to run tests using another browser
62
63
| Phantom JS | `-b phantomjs`
63
64
64
65
### Default configuration file
66
+
65
67
Many configuration options can be defaulted so they don't need to be overridden on the command line.
66
68
The JSON keys are the "long name" from the command line options.
67
-
69
+
68
70
A "selenium-cucumber-js.json" file at the root of your project allows you to specify a subset of configuration overrides.
69
71
70
-
For example the following duplicates default configuration.
72
+
For example the following duplicates default configuration:
71
73
72
74
```json
73
75
{
74
-
steps: './step-definitions',
75
-
pageObjects: './page-objects',
76
-
sharedObjects: './shared-objects',
77
-
reports: './reports',
78
-
browser: 'chrome',
79
-
timeout: 10000
76
+
"steps": "./step-definitions",
77
+
"pageObjects": "./page-objects",
78
+
"sharedObjects": "./shared-objects",
79
+
"reports": "./reports",
80
+
"browser": "chrome",
81
+
"timeout": 10000
80
82
}
81
83
```
84
+
82
85
This would set configuration to match the expected directory structure of IntelliJ's Cucumber plugin, and make default timeout one minute.
83
86
Note that the default browser has not been overridden and will remain 'chrome'.
87
+
84
88
```json
85
89
{
86
-
steps: './features/step_definitions',
87
-
pageObjects: './features/page_objects',
88
-
sharedObjects: './features/shared_objects',
89
-
reports: './features/reports',
90
-
timeout: 60000
90
+
"steps": "./features/step_definitions",
91
+
"pageObjects": "./features/page_objects",
92
+
"sharedObjects": "./features/shared_objects",
93
+
"reports": "./features/reports",
94
+
"timeout": 60000
91
95
}
92
96
```
93
97
94
-
95
98
### Feature files
96
99
97
100
A feature file is a [Business Readable, Domain Specific Language](http://martinfowler.com/bliki/BusinessReadableDSL.html) file that lets you describe software’s behavior without detailing how that behavior is implemented. Feature files are written using the [Gherkin syntax](https://github.com/cucumber/cucumber/wiki/Gherkin) and must live in a folder named **features** within the root of your project.
0 commit comments