Gradle:没有找到 Kotlin 的测试黄瓜 + 浓缩咖啡

问题描述

com.android.build.gradle.internal.testing.ConnectedDevice > 未找到测试。[Nexus_6P_API_30(AVD) - 11] 失败 没有发现测试。这通常意味着您的测试类不是您的测试运行器所期望的形式(例如,不要从 TestCase 继承或缺少 @Test 注释)。

使用的依赖项: //黄瓜的依赖

    androidTestUtil 'androidx.test:orchestrator:1.1.0'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    androidTestImplementation'com.android.support.test.espresso:espresso-intents:3.0.2'

    androidTestImplementation 'info.cukes:cucumber-android:1.2.5'
    androidTestImplementation 'info.cukes:cucumber-picocontainer:1.2.5'

Runner used:

@RunWith(AndroidJUnit4::class)
@CucumberOptions(features = ["features"],glue = ["com.vauto.vadroid.BddTest.StepDefination"],tags = [ "@smoke"])
@Suppress("unused")
class CucumberTestCase

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)