Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running both Cucumber tests and standard Android tests #64

Open
maxbetton opened this issue Feb 3, 2021 · 6 comments
Open

Running both Cucumber tests and standard Android tests #64

maxbetton opened this issue Feb 3, 2021 · 6 comments

Comments

@maxbetton
Copy link

maxbetton commented Feb 3, 2021

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
Copy link
Contributor

lsuski commented Feb 3, 2021

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

@maxbetton
Copy link
Author

Yes it's running only the non cucumber one

@lsuski
Copy link
Contributor

lsuski commented Feb 3, 2021

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
Copy link
Author

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?

@maxbetton maxbetton reopened this Feb 8, 2021
@lsuski
Copy link
Contributor

lsuski commented Oct 4, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants