question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: Multiple Cucumber runners

See original GitHub issue

Is 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
aslakhellesoycommented, Aug 30, 2016

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.

0reactions
lock[bot]commented, Oct 25, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found