I have the below jacoco setup with gradle 3.4.1 or 3.5. When my jacocoTestCoverageVerification task fails the build, the code coverage report is not generated. Is there a way get it generated? I ask because that’s really helpful in determining where I need more tests to get my lines covered up to the minimum.
Unless you’re using --continue, the default behavior is to stop everything on first failure. They’re not running in your preferred order with just configuring check to depend on both, so you just need to configure them as you want. Using mustRunAfter or shouldRunAfter probably models your intention more accurately than dependsOn here.
Alternatively, if you really want to see this report, even if tests fail, you could also model this as a finalizer task of the Test task that generates the JaCoCo data that you’re reporting on.