Issue
I got a "No tests found" error for a specific module that has no instrumented tests (only JUnit tests) when running gradlew connectedAndroidTest
in the pipeline. It's a bad thing because the app has other modules that have instrumented tests that don't run because the Gradle task fails.
I've tried removing androidTest
dependencies and testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
but the problem is still happening.
Solution
Deleting androidTest
directory solved the problem (the folder had no classes but had a .gitkeep file).
Apparently, it fails when the folder exists but has no tests in it.
Answered By - Samuel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.