I have a single, simple unit test in my Android app module:
/src/test/java/org.acme.test/SimpleTest.java
When I run:
./gradlew clean testDebug --tests='*.SimpleTest'
I get this exception:
java.lang.Exception: Custom runner class AndroidJUnit4 should have a public constructor with signature AndroidJUnit4(Class testClass)
Why does it think 'AndroidJUnit4' is a custom runner class, when it's a final class?
You might have the test class in test directory instead of androidTest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With