When using AndroidJUnitRunner 1.0.0 with Wiremock or AssertJ the following error is shown:
com.android.builder.testing.ConnectedDevice > No tests found
Reverting back to AndroidJUnitRunner 0.5 will allow the test to be detected and run.
Reported Issue: https://issuetracker.google.com/issues/64525881
Open the build.gradle
and ensure that the 1.0.0 version is uncommented and that the 0.5 version is commented.
Like so:
androidTestCompile 'com.android.support.test:runner:1.0.0'
//androidTestCompile 'com.android.support.test:runner:0.5'
To run the test and see the failure execute the following command:
./gradlew
Open the build.gradle
and ensure that the 1.0.0 version is commented and that the 0.5 version is uncommented.
Like so:
//androidTestCompile 'com.android.support.test:runner:1.0.0'
androidTestCompile 'com.android.support.test:runner:0.5'
To run the test and see it pass execute the following command:
./gradlew