Reputation: 264
I ran the migration as listed here
After running the tests, I get the error java.lang.RuntimeException: java.lang.ClassNotFoundException: org.robolectric.android.internal.ParallelUniverse
with an internal stack trace.
Did anyone encounter this and know how to fix this?
Added Gradle dependencies:
testImplementation ("org.robolectric:robolectric:4.1")
testImplementation "org.robolectric:shadows-httpclient:4.1"
testImplementation "org.robolectric:shadows-multidex:4.1"
Upvotes: 6
Views: 3359
Reputation: 264
So turns out when we tried running the tests using the "none" option, we couldn't run them because the command was too long. Running with the classpath option simply does not import the rest of the Android environment, but simply runs the test. Running with the "JAR" option gives the correct result, and the test runs as expected Cheers, and thanks for the help!
Upvotes: 9