小编Dra*_*der的帖子

Android Studio 测试显示测试结果 0/0。我怎样才能开始测试?

我正在 Android Studio 中学习 Kotlin 初学者课程 - 在测试阶段,测试结果始终为0/0。我怎样才能完成这些测试?

代码由 Google Android 开发人员编写,应该可以完美运行。(我用的是同样的)。应用程序编译没有错误。代码在这里: https ://github.com/google-developer-training/android-basics-kotlin-words-app

我尝试了各种解决方案:

这可能与 Android Studio 版本 Bumblebee 或模拟器中阻止测试的某些设置有关。我怀疑这一点,因为在创建以前的应用程序时,在测试阶段发生了同样的事情(测试结果0/0)

测试结果说:

05/04 21:06:18:在 Pixel 3 API 29 上启动“navigate_to_words_...()”。应用程序重新启动成功,无需重新安装。运行测试

$ adb shell am Instrument -w -m -e debug false -e class 'com.example.wordsapp.NavigationTests#navigate_to_words_nav_component' com.example.wordsapp.test/android.support.test.runner.AndroidJUnitRunner 连接到设备上的进程 10870 'Pixel_3_API_29 [模拟器-5556]'。>

您对此有何看法?感谢您的时间!

testing android kotlin android-studio

5
推荐指数
1
解决办法
1460
查看次数

标签 统计

android ×1

android-studio ×1

kotlin ×1

testing ×1