Closed ThomasRichtsfeld closed 6 months ago
Pushing this one. Also running the official Android Cucumber project with the plugin:
java.lang.IllegalStateException: No instrumentation registered! Must run under a registering instrumentation.
at androidx.test.platform.app.InstrumentationRegistry.getInstrumentation(InstrumentationRegistry.java:45)
at cucumber.cukeulator.test.KotlinSteps.iOpenComposeActivityWith(KotlinSteps.kt:48)
at cucumber.cukeulator.test.KotlinSteps.iOpenComposeActivity(KotlinSteps.kt:38)
at ✽.I open compose activity(file:/Users/tassilo.posegga/Workspace/cucumber-android/cukeulator/src/androidTest/assets/features/extra/compose.feature:4)
I assume that the plugin is designed to work with plain JVM only - and there are some things missing to get it work with Android tests. I'd be happy to contribute if we can get some hints towards what to look into.
Hello Do you have the plugin "Cucumber for Java" installed ? This plugin is needed for Cucumber+ to be able to run Java/Kotlin test... May be it is not part of Android Studio... but may be you can install it ?
@maximehamm Yes, this additional plugin is automatically installed when Cucumber+ gets installed
I think your project is not using Java... Cucumber+ works only with Java/Kotlin...
@maximehamm we are using the plugin on Android with 100% Kotlin
Hey there 👋
we are using Android Studio Flamingo (Build #AI-222.4459.24.2221.9787799, built on March 21, 2023). Right now we are trying to run Gherkin UI tests from within the IDE. Unfortunately, this is not possible. Neither from the feature file nor from the Cucumber+ panel on the right (see screenshot). It also doesn't seem to recognize the step definitions defined in our Kotlin test files. This is reproducible with the Cucumber demo app
Also, we get the following error when running the tests from the pane on the right
We finally found a plugin that can run single scenarios from within the IDE. It would be great if we can get some help with that issue.
Best Thomas