使用 Kotlin 进行 Espresso 测试

Espresso tests with Kotlin

每次我尝试测试我的 Android 应用程序并用 Kotlin 重写我的测试时,我总是得到:

Class not found: "my.package.modules.container.ContainerViewInstrumentedTest"
Empty test suite.

我正在尽一切努力让 Espresso 看到我的测试...但没有成功。有谁知道哪里出了问题?

问题不是我的测试...Android Studio - Canary1 有问题...现在已在 Canary 4 中修复

当它在 AS 中不起作用时,在命令行中 运行 正常工作。

./gradlew connectedCheck