Displaying coverage report generated by Gradle

Hi,

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

Hello,

You can import JaCoCo report to TeamCity using service message:

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


For more details see the section.
0

Please sign in to leave a comment.