Closed juanmendez closed 3 years ago
As I see in stacktrace you are running it from cucumber command line interface, probably by clicking run next to scenario or feature. This will not work. You have to run it as instrumented android test
@lsuski sorry to bother with this, I am debugging as you mentioned..
This has modified running configurations to
@lsuski the read me documentation should be more specific about how to run tests. Reading from https://github.com/cucumber/cucumber-android/issues/78 what I ended up doing was run all tests using Android Instrumentation.
Once this took place, I was able to see all tests running
As I see in stacktrace you are running it from cucumber command line interface, probably by clicking run next to scenario or feature. This will not work. You have to run it as instrumented android test
@lsuski , how to achieve this? I want to run by right click feature file and run as cucumber feature. If its not possible with current repo, is there any way to achieve it?
It is possible but it's not responsibility of this repo but rather intellij plugin. To run particular scenario you have to pass instrumentation argument -e features <path to feature:line of scenario>
Yeah, 100% agree that its not responsibility of repo.
Can you help me with it - In Android Studio, I want to right click and run feature file How can I do that?
passing instrumentation argument is when running test as instrumentation test. But I want to run teat as feature file
Help will be much appreciated, thanks in advance
It's not possible in Android Studio right now. This requires creating new AS plugin. Anything you want to do in AS requires some plugin. In my company we created such plugin for internal usage but it's not opensourced. Maybe we will publish it
Cool, Waiting for that plugin
Thanks for the answer
Btw, which IntelliJ plugin can help me to run .feature file as cucumber run but not as instrument test run
Cucumber for Java
Hi, I try to run the Cukeulator demo, and each time I for instance run
division.feature
I get this error I was hoping to know if anyone else has faced this issue. Thank you.