Using JaCoCo code coverage data from shell script

Hi,

we use JaCoCo to instrument code running on a JBoss server. When a shell script stops this server after the tests in TeamCity, the path is printed as a service message as explained in the documentation.

However, there is no code coverage tab for the finished build. If I add JaCoCo to another build step (Maven), the code coverage tab appears, but the report is only being generated for that step.

So my question is: Is it possible to tell TeamCity to use a jacoco.exec file when it is created during a build step of a shell script? Also, is it possible to specify a folder for instrumented classes when using the offline mode of JaCoCo?

3 comments
Comment actions Permalink

Hi Stephan,

Yes, it is possible to tell TeamCity to parse JaCoCo coverage data since 9.0 version. Which TeamCity version do you use?

0
Comment actions Permalink

We use TeamCity 8.1.5. Is TeamCity 9 released already?

0
Comment actions Permalink

TeamCity 9 is planned to be released in the first decade of December. This feature was included in TeamCity 9.0 EAP, please try it  - https://confluence.jetbrains.com/display/TW/TeamCity+EAP+(Latest)

0

Please sign in to leave a comment.