【发布时间】:2011-05-27 10:10:39
【问题描述】:
我使用http://code.google.com/p/the-missing-android-xml-junit-test-runner/ 在jenkins 环境中运行单元测试。
一个示例项目运行良好,但另一个示例项目却出现了奇怪的结果。 蚂蚁输出
[echo] Running tests ...
[exec]
[exec] Test results for PolideaInstrumentationTestRunner=
[exec] Time: 0.0
[exec]
[exec] OK (0 tests)
[exec]
[exec]
adb shell am instrument -w com.mypack.tests/pl.polidea.instrumentation.PolideaInstrumentationTestRunner 也是如此。
它认为没有测试但有。他们成功地从 eclipse 运行。
【问题讨论】:
-
试试 android.test.InstrumentationTestRunner 来检测你的问题出在哪里。
-
知道了!试图找出可行的项目和不可行的项目之间的差异。
标签: android unit-testing ant jenkins