Displaying coverage report generated by Gradle


I'm wondering is it possible for Teamcity to collect a jacoco coverage report generated by Gradle's jacocoTestReport task?

Looking at the documentation I see it's only possible to configure TeamCity to generate the report and then he can collect it automatically, however I want all jacoco configuration to reside in Gradle's build file so I'll be able to run the same on my local machine and not only in Teamcity.

1 comment
Comment actions Permalink


You can import JaCoCo report to TeamCity using service message:

##teamcity[jacocoReport dataPath='<path to jacoco.exec file>']

For more details see the section.

Please sign in to leave a comment.