You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the superclasses of the the unit tests, LoaderTestCase, ObaLoaderTestCase, and ObaTestCase, when running "All Tests" in Android Studio I get the below stack trace:
java.lang.Exception: No runnable methods
at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:191)
at org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:128)
at org.junit.runners.ParentRunner.validate(ParentRunner.java:416)
at org.junit.runners.ParentRunner.<init>(ParentRunner.java:84)
at org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:65)
at android.support.test.internal.runner.junit4.AndroidJUnit4ClassRunner.<init>(AndroidJUnit4ClassRunner.java:39)
at android.support.test.runner.AndroidJUnit4.<init>(AndroidJUnit4.java:49)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.support.test.internal.runner.junit4.AndroidAnnotatedBuilder.buildAndroidRunner(AndroidAnnotatedBuilder.java:71)
at android.support.test.internal.runner.junit4.AndroidAnnotatedBuilder.runnerForClass(AndroidAnnotatedBuilder.java:48)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at android.support.test.internal.runner.AndroidRunnerBuilder.runnerForClass(AndroidRunnerBuilder.java:153)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at android.support.test.internal.runner.TestLoader.doCreateRunner(TestLoader.java:73)
at android.support.test.internal.runner.TestLoader.getRunnersFor(TestLoader.java:104)
at android.support.test.internal.runner.TestRequestBuilder.build(TestRequestBuilder.java:789)
at android.support.test.runner.AndroidJUnitRunner.buildRequest(AndroidJUnitRunner.java:539)
at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:382)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2106)
I believe this is just a configuration issue - we need to tell AndroidJUnit4ClassRunner not to treat these classes as runnable unit tests
Steps to reproduce:
Right-click on the androidTest/java folder
Click "Run 'All Tests'"
Expected behavior:
All unit tests run should pass
Observed behavior:
LoaderTestCase, ObaLoaderTestCase, and ObaTestCase have an initialization error with java.lang.Exception: No runnable methods
Device and Android version:
Master branch as of 144d045, with Android Studio 3.1.2
The text was updated successfully, but these errors were encountered:
Summary:
For the superclasses of the the unit tests, LoaderTestCase, ObaLoaderTestCase, and ObaTestCase, when running "All Tests" in Android Studio I get the below stack trace:
I believe this is just a configuration issue - we need to tell AndroidJUnit4ClassRunner not to treat these classes as runnable unit tests
Steps to reproduce:
androidTest/java
folderExpected behavior:
All unit tests run should pass
Observed behavior:
LoaderTestCase, ObaLoaderTestCase, and ObaTestCase have an initialization error with
java.lang.Exception: No runnable methods
Device and Android version:
Master branch as of 144d045, with Android Studio 3.1.2
The text was updated successfully, but these errors were encountered: