I use Cobertura Plugin to display some code coverage result. To generate the code coverage i use GCOV (tool included on GCC) and to generate the XML for Cobertura i use LCOV script which is a script dedicated to transform the standard output of gcov to Cobertura xml format.
This XML is displayed correctly on the graphical interface but i have a problem with the overview part. The Package Line Coverage and the Branch Coverage are wrong.
on the XML i have :
<package branch-rate="0.127646195766" line-rate="0.42970027248" name="src">
<classes>
<class branch-rate="0.272222222222" complexity="0" filename="src/AssociatedData.cpp" line-rate="0.622406639004" name="src.AssociatedData_cpp">
<methods>
<method hits="1" name="gtmdcme::FutureOptionUnderlyingBuilder::FutureOptionUnderlyingBuilder(gtmdcme::MessageHandler*, gtmdds::ILogger*, gtmdbase::IInstrumentManager*, gtmdcme::Configuration*) " signature="">
<lines>
<line branch="false" hits="1" number="9"/>
<line branch="false" hits="1" number="11"/>
<line branch="false" hits="1" number="12"/>
<line branch="false" hits="1" number="13"/>
<line branch="false" hits="1" number="14"/>
<line branch="false" hits="1" number="15"/>
</lines>
</method>
to recap the Line Coverage is : 42.98% and the Branch Coverage is : 12.77%
but on the graphical interface i Have the Line Coverage equal to 70.02% and the Branch Coverage equal to 27.22%
my question is: why i haven't the same value between the XML and the overview on graphical interface?
thx,
--Mohtadi