[CMake] Getting coverage to show up
Bill Hoffman
bill.hoffman at kitware.com
Wed May 28 09:21:44 EDT 2008
Mathieu Malaterre wrote:
> On Wed, May 28, 2008 at 2:53 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>> Mathieu Malaterre wrote:
>>> Hi there,
>>>
>>> I do not understand why the coverage for the gdcm project is 0%.
>>> Here is the ctest script I am using:
>>> Thus CDash should display 29.53%, right ?
>>>
>> Take a look at the Coverage*.xml files in the testing directory. There is a
>> bug with cmake 2.6 not showing gcc coverage, but it looks like you are 2.4
>> for this build.
>>
>> -Bill
>>
>
> Indeed, I am using a debian/stable system where cmake version is still
> 2.4.5, is this the issue here ?
>
nope.
> For info:
>
> $ head ./Testing/20080528-0100/Coverage.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <Site BuildName="Linux-g++-4.2" BuildStamp="20080528-0100-Nightly"
> Name="zorglub" Generator="ctest2.4-patch 5">
> <Coverage>
> <StartDateTime>May 28 13:24 CEST</StartDateTime>
> <File Name="gdcmCommonTests.cxx"
> FullPath="./Testing/Source/Common/Cxx/gdcmCommonTests.cxx"
> Covered="true">
> <LOCTested>34</LOCTested>
> <LOCUnTested>24</LOCUnTested>
> <PercentCoverage>58.62</PercentCoverage>
> <CoverageMetric>0.65</CoverageMetric>
> </File>
>
>
> Thanks !
Looks like a CDash issue...
-Bill
More information about the CMake
mailing list