You can do parallel execution if you provide different cucumber runner classes.
Then you can configure the Test tasks in Gradle to run in parralel:
tasks.withType(Test) {
maxParallelForks = 4
}
And you need to define a test Task which executes your cucumber runners (in this example all have a Cucumber in their classname)
task cucumberTests(type: Test){
includes = ['**/*Cucumber*']
}
Maybe this will help you
PS Regarding the sequential running: Cucumber doesn't guarante any running order of the different feature files
If you are open to using Maven, here is the example I used. Worked great for me!
https://opencredo.com/running-cucumber-jvm-tests-in-parallel/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.