File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
cucumber-junit-platform-engine Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -185,18 +185,23 @@ Define Cucumber properties before running the test to ensure that your `build.gr
185
185
186
186
``` groovy
187
187
tasks.test {
188
- systemProperty("cucumber.features", System.getProperty("cucumber.features"))
189
- systemProperty("cucumber.filter.tags", System.getProperty("cucumber.filter.tags"))
190
- systemProperty("cucumber.filter.name", System.getProperty("cucumber.filter.name"))
188
+ systemProperty("cucumber.features", System.getProperty("cucumber.features"))
189
+ systemProperty("cucumber.filter.tags", System.getProperty("cucumber.filter.tags"))
190
+ systemProperty("cucumber.filter.name", System.getProperty("cucumber.filter.name"))
191
+ systemProperty("cucumber.plugin", System.getProperty("cucumber.plugin"))
191
192
}
192
193
```
193
194
194
195
Then to select the scenario on line 10 of the ` example.feature ` file use:
195
196
196
197
``` shell
197
- gradle test -Dcucumber.features=" path/to/example.feature:10"
198
+ gradle test --rerun-tasks --info - Dcucumber.plugin=pretty -Dcucumber. features=path/to/example.feature:10
198
199
```
199
200
201
+ Note: Because both the Suite Engine and the Cucumber Engine are included, this
202
+ will run tests twice. (If you know how to prevent this, please send a pull
203
+ request).
204
+
200
205
## Suites with different configurations
201
206
202
207
The JUnit Platform Suite Engine can be used to run Cucumber multiple times with
You can’t perform that action at this time.
0 commit comments