Status Update
Comments
uc...@google.com <uc...@google.com> #2
Do you have a repro project that you could share with us?
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
There should be no need to excluding any dependencies: we automatically remove them from the test APK if they are in the main APK.
be...@google.com <be...@google.com>
so...@gmail.com <so...@gmail.com> #3
I am facing exactly same problem with running tests in test only module
ar...@mail.ru <ar...@mail.ru> #4
Have the same problem.
zh...@gmail.com <zh...@gmail.com> #5
Having the same issue.
Description
Build #AI-162.3764568, built on February 24, 2017
JRE: 1.8.0_112-release-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Steps to reproduce:
clone
Open the project in Android studio.
When AS asks to update to the latest gradle version, do so.
Open the class AndroidTestOnlyModuleTest
Press the run icon (green arrows) on the left of the class definition.
It will fail with the following error:
!!! JUnit version 3.8 or later expected:
java.lang.RuntimeException: Stub!
at junit.runner.BaseTestRunner.<init>(BaseTestRunner.java:5)
at junit.textui.TestRunner.<init>(TestRunner.java:54)
at junit.textui.TestRunner.<init>(TestRunner.java:48)
at junit.textui.TestRunner.<init>(TestRunner.java:41)
at com.intellij.rt.execution.junit.JUnitStarter.junitVersionChecks(JUnitStarter.java:233)
at com.intellij.rt.execution.junit.JUnitStarter.canWorkWithJUnitVersion(JUnitStarter.java:216)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Process finished with exit code 253
I also can't create a working run configuration anymore. It just says: "Error: the current project can not be run".