It's all about the answers!

Ask a question

Code Coverage in RTC

Adrian Daniels (6312120) | asked Jul 11 '12, 5:29 a.m.
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.
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 ?


One answer

permanent link
Ralph Schoon (63.2k33646) | answered Jul 11 '12, 10:36 a.m.
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 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: . 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.

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


So is code coverage a part of RTC? I see article 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.

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 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. can help to accomplish that.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.