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
And this code works earlier in gradle 3
Now when I run tests as a result I get
== BUILD SUCCESSFUL ==
but no one test was running
After that I inspect logcat in found this exception
E/AndroidJUnitRunner: Fatal exception when running tests
java.lang.IllegalArgumentException: Ambiguous arguments: cannot provide both test package and test class(es) to run
at android.support.test.internal.runner.TestRequestBuilder.validate(TestRequestBuilder.java:828)
at android.support.test.internal.runner.TestRequestBuilder.build(TestRequestBuilder.java:789)
at android.support.test.runner.AndroidJUnitRunner.buildRequest(AndroidJUnitRunner.java:487)
at android.support.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:373)
at my.package.app.runner.UnlockDeviceAndroidJUnitRunner.onStart(UnlockDeviceAndroidJUnitRunner.java:44)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2075)
The text was updated successfully, but these errors were encountered:
Thank you for gradle 4 support
Can you tray run tests from specific package and help me?
In my case I was trying by setting instrumentation arguments:
And this code works earlier in gradle 3
Now when I run tests as a result I get
but no one test was running
After that I inspect logcat in found this exception
The text was updated successfully, but these errors were encountered: