当前位置: 代码迷 >> 综合 >> [已解决]junit.framework.AssertionFailedError: No tests found in
  详细解决方案

[已解决]junit.framework.AssertionFailedError: No tests found in

热度:89   发布时间:2023-12-16 14:52:15.0
单元测试的时候报错

junit.framework.AssertionFailedError: No tests found in androidstudio.kodulf.unittestdemo2.TestCaseDo
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.TestSuite$1.runTest(TestSuite.java:97)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:115)
at android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
at junit.framework.TestResult.run(TestResult.java:118)
at android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
at junit.framework.TestCase.run(TestCase.java:124)
at android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
  相关解决方案