Android: Multiple Cucumber runners
See original GitHub issueIs it possible to have multiple test runners with unique CucumberOptions
?
For example I have two runners
RegressionTestsRunner.java
:
@RunWith(Cucumber.class)
@CucumberOptions(
features = "features/regression",
tags = "~@wip"
)
public class RegressionTestsRunner {
}
and SmokeTestsRunner.java
@RunWith(Cucumber.class)
@CucumberOptions(
features = "features/smoke",
tags = "~@wip"
)
public class SmokeTestsRunner {
}
But in some reason Cucumber runs first runner it finds. If I run SmokeTestsRunner
, RegressionTestsRunner
will be ran:
Found CucumberOptions in class com.example.app.stepDefinitions.RegressionTestsRunner
Note: works in java
project
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Running Cucumber Features in Parallel on Mobile Devices
While creating multiple appium sessions for iOS is bit different than android. From Xcode 9 onwards it is possible to run tests in...
Read more >How to execute test runner with multiple tags in Cucumber
Cucumber supports both package names, classpath uris and windows paths. I'd not recommend using the latter two but it's still valid. · @M.P. ......
Read more >Cucumber 4 Test Runner and running scenarios in parallel
In this video we will discuss Cucumber 4 Test runner and running the scenarios in Parallel. This is an all new feature in...
Read more >Be Da Developer, Cucumber on Android | by Emma Suzuki
Setup · Install Gherkin plugin · Add Cucumber and Espresso dependencies · Create a custom Cucumber instrumentation runner · Add an test application...
Read more >Run Cucumber tests | IntelliJ IDEA Documentation - JetBrains
The quickest way of running Cucumber tests is by using the icons in the gutter next to the necessary feature or scenario.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s JUnit that runs the Runner class (which is a JUnit test), which in turn runs Cucumber. You have to tell JUnit what tests to run.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.