是否有人知道一个示例项目显示如何使测试计划工作?我检查了谷歌的样本,似乎没有一个很好的示例项目显示测试计划。
https://github.com/googlesamples/android-testing
我一直试图让android测试在测试程序中运行,但一直在努力让它正常工作。我尝试通过Android (最新的3.2.1)和命令行(https://developer.android.com/training/testing/junit-runner#ato-command-line)运行测试。我参考了Android开发人员的文档。
https://developer.android.com/training/testing/junit-runner
以下是我遵循的步骤。
1) Create an empty activity application using the wizard in Android
Studio
2) Enable the test orchestrator using the steps provided here
(https://developer.android.com/training/testing/junit-runner).
3) Run the unit tests from within the IDE and from the command line.当我这样做时,我会得到一个错误,指示我的“测试套件是空的”。我在命令行中运行同样的错误。
注意,如果我在没有测试协调器的情况下运行测试,那么测试将成功运行。
还请注意,我使用的是最新的测试编排版本。
发布于 2019-04-01 18:24:38
要运行测试调度器的完整配置:
https://stackoverflow.com/questions/53577274
复制相似问题