当try 在Android Studio(直到3.2 Canary 9)上运行用Kotlin编写的Espresso 测试时,我收到错误: 进程已完成,退出代码为%1 找不到类:"com.myproject.directoryofwinning.VerifyAppIsAwesomeTest"Empty测试套件.
奇怪的是,同一个项目中的Java测试没有问题.
已经try 重置其他人建议的配置,但这似乎没有任何区别.
当try 在Android Studio(直到3.2 Canary 9)上运行用Kotlin编写的Espresso 测试时,我收到错误: 进程已完成,退出代码为%1 找不到类:"com.myproject.directoryofwinning.VerifyAppIsAwesomeTest"Empty测试套件.
奇怪的是,同一个项目中的Java测试没有问题.
已经try 重置其他人建议的配置,但这似乎没有任何区别.
In the end I found that it was down to "test" being added to the end of the classname. Either moving the word Test to the front of the classname, or omitting it all together resolves the issue.