No session data in JaCoCo Coverage Report available


(Sven Reimers) #1

Using Gradle-2.0-rc-1 th default configuration of the jacocoTestReport seems to be misconfigured. The generated test.exec in build/jacoco/test.exec is not picked up by the reporting task (there is no INFO ouput visible telling me it tries to load that data file). The consequence is an empty coverage report (no coverage).

Adding:

jacocoTestReport {

executionData { file (‘build/jacoco/test.exec’) } }

fixes the problem.

Would be nice if this would work out-of-the-box in 2.0.

Thanks

Sven