junit.framework.AssertionFailedError: No tests found in com.example.ruthwik.demotest.MainActivityTest

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Espresso No Activity found exception

    Stack Overflow | 8 months ago | Ruthwik Warrier
    junit.framework.AssertionFailedError: No tests found in com.example.ruthwik.demotest.MainActivityTest

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      No tests found in com.example.ruthwik.demotest.MainActivityTest

      at junit.framework.Assert.fail()
    2. JUnit
      TestResult$1.protect
      1. junit.framework.Assert.fail(Assert.java:50)
      2. junit.framework.TestSuite$1.runTest(TestSuite.java:97)
      3. junit.framework.TestCase.runBare(TestCase.java:134)
      4. junit.framework.TestResult$1.protect(TestResult.java:115)
      4 frames
    3. android.support.test
      AndroidTestResult.runProtected
      1. android.support.test.internal.runner.junit3.AndroidTestResult.runProtected(AndroidTestResult.java:77)
      1 frame
    4. JUnit
      TestResult.run
      1. junit.framework.TestResult.run(TestResult.java:118)
      1 frame
    5. android.support.test
      AndroidTestResult.run
      1. android.support.test.internal.runner.junit3.AndroidTestResult.run(AndroidTestResult.java:55)
      1 frame
    6. JUnit
      TestCase.run
      1. junit.framework.TestCase.run(TestCase.java:124)
      1 frame
    7. android.support.test
      NonLeakyTestSuite$NonLeakyTest.run
      1. android.support.test.internal.runner.junit3.NonLeakyTestSuite$NonLeakyTest.run(NonLeakyTestSuite.java:63)
      1 frame
    8. JUnit
      TestSuite.run
      1. junit.framework.TestSuite.runTest(TestSuite.java:243)
      2. junit.framework.TestSuite.run(TestSuite.java:238)
      2 frames
    9. android.support.test
      JUnit38ClassRunner.run
      1. android.support.test.internal.runner.junit3.DelegatingTestSuite.run(DelegatingTestSuite.java:103)
      2. android.support.test.internal.runner.junit3.AndroidTestSuite.run(AndroidTestSuite.java:69)
      3. android.support.test.internal.runner.junit3.JUnit38ClassRunner.run(JUnit38ClassRunner.java:103)
      3 frames
    10. JUnit
      JUnitCore.run
      1. org.junit.runners.Suite.runChild(Suite.java:128)
      2. org.junit.runners.Suite.runChild(Suite.java:27)
      3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      8. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      9. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      10. org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      10 frames
    11. android.support.test
      AndroidJUnitRunner.onStart
      1. android.support.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
      2. android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:262)
      2 frames
    12. Android Platform
      Instrumentation$InstrumentationThread.run
      1. android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1837)
      1 frame