我一直在尝试在 Android 中运行 DumpRenderTree 测试(在我运行 ICS 的 Android 设备上),但无法弄清楚如何运行它。文档很少,我发现的唯一其他线程(接近我的问题)是:
你如何将 Android Instrumentation 测试推送到模拟器/设备?
这是我运行此命令时的 ddms 输出:
05-23 11:59:07.118: INFO/TestRunner(10253): started: warning(junit.framework.TestSuite$1)
05-23 11:59:07.118: INFO/TestRunner(10253): failed: warning(junit.framework.TestSuite$1)
05-23 11:59:07.118: INFO/TestRunner(10253): ----- begin exception -----
05-23 11:59:07.118: INFO/TestRunner(10253): junit.framework.AssertionFailedError: No tests found in com.android.dumprendertree.LayoutTestsAutoTest
05-23 11:59:07.118: INFO/TestRunner(10253): at junit.framework.Assert.fail(Assert.java:47)
05-23 11:59:07.118: INFO/TestRunner(10253): at junit.framework.TestSuite$1.runTest(TestSuite.java:263)
05-23 11:59:07.118: INFO/TestRunner(10253): at junit.framework.TestCase.runBare(TestCase.java:127)
05-23 11:59:07.118: INFO/TestRunner(10253): at junit.framework.TestResult$1.protect(TestResult.java:106)
05-23 11:59:07.118: INFO/TestRunner(10253): at junit.framework.TestResult.runProtected(TestResult.java:124)
05-23 11:59:07.118: INFO/TestRunner(10253): at junit.framework.TestResult.run(TestResult.java:109)
05-23 11:59:07.118: INFO/TestRunner(10253): at junit.framework.TestCase.run(TestCase.java:118)
05-23 11:59:07.118: INFO/TestRunner(10253): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
05-23 11:59:07.118: INFO/TestRunner(10253): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
05-23 11:59:07.118: INFO/TestRunner(10253): at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:537)
05-23 11:59:07.118: INFO/TestRunner(10253): at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551)
05-23 11:59:07.118: INFO/TestRunner(10253): ----- end exception -----
05-23 11:59:07.126: INFO/TestRunner(10253): finished: warning(junit.framework.TestSuite$1)
05-23 11:59:07.126: INFO/TestRunner(10253): started: warning(junit.framework.TestSuite$1)
05-23 11:59:07.126: INFO/TestRunner(10253): failed: warning(junit.framework.TestSuite$1)
05-23 11:59:07.126: INFO/TestRunner(10253): ----- begin exception -----
05-23 11:59:07.126: INFO/TestRunner(10253): junit.framework.AssertionFailedError: No tests found in com.android.dumprendertree.LoadTestsAutoTest
05-23 11:59:07.126: INFO/TestRunner(10253): at junit.framework.Assert.fail(Assert.java:47)
05-23 11:59:07.126: INFO/TestRunner(10253): at junit.framework.TestSuite$1.runTest(TestSuite.java:263)
05-23 11:59:07.126: INFO/TestRunner(10253): at junit.framework.TestCase.runBare(TestCase.java:127)
05-23 11:59:07.126: INFO/TestRunner(10253): at junit.framework.TestResult$1.protect(TestResult.java:106)
05-23 11:59:07.126: INFO/TestRunner(10253): at junit.framework.TestResult.runProtected(TestResult.java:124)
05-23 11:59:07.126: INFO/TestRunner(10253): at junit.framework.TestResult.run(TestResult.java:109)
05-23 11:59:07.126: INFO/TestRunner(10253): at junit.framework.TestCase.run(TestCase.java:118)
05-23 11:59:07.126: INFO/TestRunner(10253): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
05-23 11:59:07.126: INFO/TestRunner(10253): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
05-23 11:59:07.126: INFO/TestRunner(10253): at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:537)
05-23 11:59:07.126: INFO/TestRunner(10253): at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551)
05-23 11:59:07.126: INFO/TestRunner(10253): ----- end exception -----
05-23 11:59:07.126: INFO/TestRunner(10253): finished: warning(junit.framework.TestSuite$1)
我应该在运行它之前进行一些测试吗?任何指针将不胜感激!