cucumber / cucumber-android

Android support for Cucumber-JVM
MIT License
135 stars 62 forks source link

Running both Cucumber tests and standard Android tests #64

Open maxbetton opened 3 years ago

maxbetton commented 3 years ago

My problem is that when I use CucumberAndroidJUnitRunner I'm not able to run the Android instrumented tests and the cucumber ones, only the cucumber tests are running. Even with CukeulatorAndroidJUnitRunner. I check PR #39 and issue #43 but still dont working.

lsuski commented 3 years ago

Did you try this gradlew connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.cucumberUseAndroidJUnitRunner=true?

maxbetton commented 3 years ago

Yes it's running only the non cucumber one

lsuski commented 3 years ago

Ok, so to be clear - you want to run both kind of tests on single run? This is impossible currently. You can run cucumber ones and then non cucumber, like in cukeulator travis.yml

maxbetton commented 3 years ago

Okay, thank you for your answer, I didn't quite understand. I don't know if you know Flank, but in view of your answer it is not possible to use Flank with Cucumber?

lsuski commented 3 years ago

According to Flank docs it is not possible. It is not on my roadmap but I can review any PR with that. I don't know how exactly Flank works differently than e.g Spoon an why it is not working with Cucumber when Spoon does

dalewking commented 2 years ago

You could look at how green coffee library allows this. It allows running both by using Parameterized Runner from Junit to add the gherkin tests to the Junit ones