How to generate code coverage reports for Android unit tests
<p>I'd like to start generating unit test code coverage reports for my Android application, where the unit tests are not in the <code>androidTest</code> folder, but in a <code>test</code> folder that I've created. To start, I've added the following to my <code>build.gradle</code> file:</p>

<pre><code>buildTypes {
    ...
    debug {
        debuggable true
        testCoverageEnabled true
    }
    ...
}
</code></pre>

<p>Running <code>./gradlew createDebugCoverageReport</code> generates reports for my tests in the <code>androidTest</code> folder, but nothing in the <code>test</code> folder. How can I create those same coverage reports for the tests in the <code>test</code> folder?</p>