I'd like to start generating unit test code coverage reports for my Android application, where the unit tests are not in the androidTest
folder, but in a test
folder that I've created. To start, I've added the following to my build.gradle
file:
buildTypes {
...
debug {
debuggable true
testCoverageEnabled true
}
...
}
Running ./gradlew createDebugCoverageReport
generates reports for my tests in the androidTest
folder, but nothing in the test
folder. How can I create those same coverage reports for the tests in the test
folder?