2

大约两个月以来,我一直无法在 Android Studio 中运行单独的 UI 测试。右键单击测试名称,然后run <test name>给我错误No tests were found。如果我右键单击类名然后单击run <testing class name>,它会成功运行类中的所有测试。因此,为了只在一个类中运行一个单独的测试,我必须诉诸注释掉我不想运行的所有测试,然后从类名中单击运行,这很痛苦。这在几个月前曾经工作得很好。

我真的没有更多的信息可以去。唯一的输出是

Connected to the target VM, address: '127.0.0.1:49178', transport: 'socket'
Disconnected from the target VM, address: '127.0.0.1:49178', transport: 'socket'

Process finished with exit code 1
Class not found: "com.mypackagename.android.TestClassName"
4

0 回答 0