Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,410,363
Community Members
 
Community Events
169
Community Groups

Clover XML Schema

Where can I find XML Schema for Clover?

I currently have the following converted from gcov:

<clover generated="1342084368.29">
<project name="tool-chain-tests">
<package name="cxx">
<file name="cxx/tests/animal.cpp">
<line num="62" count="4" type="stmt"></line>
<line num="64" count="2" type="stmt"></line>
<line num="65" count="1" type="stmt"></line>
<line num="66" count="1" type="stmt"></line>
<line num="67" count="2" type="stmt"></line>
<line num="88" count="2" type="stmt"></line>
<line num="97" count="2" type="stmt"></line>
<line num="98" count="2" type="stmt"></line>
<line num="99" count="2" type="stmt"></line>
<line num="100" count="2" type="stmt"></line>
<line num="109" count="2" type="stmt"></line>
<line num="110" count="2" type="stmt"></line>
<line num="111" count="2" type="stmt"></line>
<line num="120" count="1" type="stmt"></line>
<line num="121" count="1" type="stmt"></line>
<line num="122" count="1" type="stmt"></line>
<line num="131" count="1" type="stmt"></line>
<line num="132" count="1" type="stmt"></line>
<line num="133" count="1" type="stmt"></line>
<line num="134" count="1" type="stmt"></line>
<line num="135" count="1" type="stmt"></line>
<line num="142" count="3" type="stmt"></line>
</file>
<file name="cxx/tests/main.cpp">
<line num="49" count="1" type="stmt"></line>
<line num="51" count="1" type="stmt"></line>
<line num="54" count="1" type="stmt"></line>
<line num="55" count="1" type="stmt"></line>
<line num="58" count="1" type="stmt"></line>
<line num="59" count="1" type="stmt"></line>
<line num="62" count="1" type="stmt"></line>
<line num="63" count="1" type="stmt"></line>
<line num="64" count="1" type="stmt"></line>
<line num="67" count="1" type="stmt"></line>
<line num="68" count="1" type="stmt"></line>
<line num="69" count="0" type="stmt"></line>
<line num="73" count="1" type="stmt"></line>
<line num="74" count="1" type="stmt"></line>
<line num="75" count="1" type="stmt"></line>
<line num="76" count="1" type="stmt"></line>
<line num="77" count="1" type="stmt"></line>
<line num="83" count="1" type="stmt"></line>
<line num="85" count="1" type="stmt"></line>
<line num="86" count="1" type="stmt"></line>
<line num="87" count="1" type="stmt"></line>
<line num="88" count="1" type="stmt"></line>
<line num="89" count="1" type="stmt"></line>
<line num="95" count="1" type="stmt"></line>
<line num="97" count="1" type="stmt"></line>
<line num="98" count="1" type="stmt"></line>
<line num="99" count="1" type="stmt"></line>
<line num="100" count="1" type="stmt"></line>
<line num="101" count="1" type="stmt"></line>
<line num="104" count="1" type="stmt"></line>
<line num="107" count="1" type="stmt"></line>
<line num="108" count="3" type="stmt"></line>
</file>
</package>
</project>
</clover>

But it doesn't work in Bamboo:

Failed to execute plugin 'Clover Results Collector' with error: null

2 answers

1 accepted

1 vote
Answer accepted

Hi Matt,

An error mentioned by you:

Failed to execute plugin 'Clover Results Collector'with error: null
is caused by invalid XML file format. In order to parse it correctly by 'Clover Results Collector' you must provide at least metrics at the project level. For example:
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1336638030827" clover="3.1.5">
  <project timestamp="1336638027763">
    <metrics classes="0" files="1" packages="1" 
       loc="1000" ncloc="800" 
       coveredstatements="300" statements="500" 
       coveredmethods="50" methods="80"
       coveredconditionals="100" conditionals="120"  
       coveredelements="900" elements="1000"
       complexity="0" />
  </project>
</coverage>

Thanks, Marek - that is a great help. I haven't had time to look over the clover.xsd yet - been fighting fires with the Bamboo 4.1 upgrade!

This will help me along greatly!

All fixed and integrated with Bamboo

0 votes

Hi Matt,

1) You can find Clover schema in Clover-for Ant (clover-ant-X.X.X.zip) zip file under /etc/clover.xsd.

2) Please note that Clover is not available on OnDemand. See FAQ entry on confluence and post on answers.atlassian.com.

Regards
Marek

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events