It's all about the answers!

Ask a question

Code Coverage in RTC


Adrian Daniels (6312020) | asked Jul 11 '12, 5:29 a.m.
Hi,
I am looking for some guidance of how code coverage analysis tools can be integrated in to the RTC deliver and build processes.

I see from this article that EMMA was supported - but I cannot find any details as to how to configure it in the V4 release. 
https://jazz.net/library/article/34
There does not appear to be any incubators any more and I cannot seem to see that it is now integrated into the product - the latest docs do not have any details either.

The team that I am working with want to use Clover for code coverage - does RTC have support for this ?

Ok, so I could call an Ant task to kick the analysis off but then how do I get the results back in a respectable format to be shown in the build record ?

Anyone done this ?

Cheers,
Adrian

One answer



permanent link
Ralph Schoon (60.5k33643) | answered Jul 11 '12, 10:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Adrian,

In general you can use everything you can run in a build e.g. calling with an Ant task. You can use the Build System ANT tasks publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.team.build.doc/topics/r_ant-tasks.html to upload those files to the build result.

I think the solution lacks easy access to the data e.g. using HTML. So I wrote this article because I have seen several questions like this: https://jazz.net/library/article/797 . The approach used in the article would be one approach. Another approach I have seen is using RTC with Jenkins and publish the Jenkins result pages back to RTC.



Comments
Sterling Ferguson-II commented Jan 10 '13, 2:29 p.m.

Ralph,


So is code coverage a part of RTC? I see article https://jazz.net/library/article/34 but it does not seem to provide a link to the coverage piece...Is this built in now or what?


Ralph Schoon commented Jan 11 '13, 3:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Hi Sterling,

there was an attempt once to add these kinds of capabilities, hence the article you refer to. There was an incuator, see:

To be able to view coverage reports on the Jazz client, you need to install the JazzCodeCoverage-IXXXXXXXX-XXXX.zip download available from the Jazz Project Incubators list.

As far as I know that was discontinued. The incubator was around displaying the code coverage in the build result.

However, the code coverage itself was done with Emma - as you can see from the article. That is a free tool and you can still use it - or any other tool you might have. You just have to integrate it into your build. The only missing thing is how to publish the results. https://jazz.net/library/article/797 can help to accomplish that.

Your answer


Register or to post your answer.