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
Accepted answer

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
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

452 views 2 5
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you