It's all about the answers!

Ask a question

How to publish code coverage results in the continuous build?


Youraj Singh (23136) | asked Feb 25 '13, 2:43 a.m.
edited Feb 25 '13, 4:17 a.m. by Ralph Schoon (63.5k33646)
How to publish code coverage results in the continuous build?
We have employed an open source tool to do code coverage for us. Please let us know is there a way by which i can publish code coverage results along with the build.
We have tried using the jazz internal code coverage but it only gives a limited information.
On the other hand, we are more interested in some other artifacts which the open source tool provides us.
Please let me know if i can incorporate the complete code coverage report in the build results.
Any help/pointers will be highly appreciated.

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Feb 25 '13, 4:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Youraj,

I have described some option to publish anything to a build result in this article: https://jazz.net/library/article/797

There is a work item about publishing arbitrary data. You can subscribe to https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/94475 and contribute your thoughts.

The other option currently is to upload a file to the build result To view it you have to download it and open it locally.



Comments
Youraj Singh commented Feb 25 '13, 6:06 a.m.

Hi Ralph. Thank you for your response. We have already gone through the links you have shared and its not of great help to us.

I came across the following link looking for a pointer

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=252967

The description of this plan correctly captures our requirement.
"Running of the tools is not normally a big issue; that's usually easy to script.  Where integration is really needed is in the presentation of data from such tools in the build result, including a quick summary to assess overall health of the build, and the ability to drill down if needed (e.g. if there are errors/warnings), with easy navigation to the associated source code"
Does this mean that it is still in planning phase and yet to be implemented?


Ralph Schoon commented Feb 25 '13, 6:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The workitem you refer to is that parent of the one I mention in the answer above. It tracks planning for what you asked for. Since it is new, unassigned and planned for the backlog, it is still in the planning phase and yet to be implemented. It is not planned for any milestone yet, and other data on the plan item indicates that it is in the planning phase. There was some activity recently in the children.

As it is not available today, you could upload your data as suggested in the answer. I am not sure if one could provide a custom tab to the build result, but I assume it would be a bigger effort. The alternative I am aware of, is to store the data you want to publish in a folder that s published by a http server and publish the link at the build result as described in my article.


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.