[CMake] Getting coverage to show up

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed May 28 07:25:02 EDT 2008


Hi there,

  I do not understand why the coverage for the gdcm project is 0%.
Here is the ctest script I am using:

http://www.cdash.org/CDash/viewNotes.php?buildid=86800

  And it shows up as:

http://www.cdash.org/CDash/viewCoverage.php?buildid=86800

  While if I type manually:

$ make NightlyCoverage
   Site: zorglub
   Build name: Linux-g++-4.2
Start processing tests
Performing coverage
   Processing coverage (each . represents one file):
    .................................................. processed: 50 out of 431
    .................................................. processed: 100 out of 431
    .................................................. processed: 150 out of 431
    .................................................. processed: 200 out of 431
    .................................................. processed: 250 out of 431
    .................................................. processed: 300 out of 431
    .................................................. processed: 350 out of 431
    .................................................. processed: 400 out of 431
    ...............................
   Acumulating results (each . represents one file):
    .................................................. processed: 50 out of 417
    .................................................. processed: 100 out of 417
    .................................................. processed: 150 out of 417
    .................................................. processed: 200 out of 417
    .................................................. processed: 250 out of 417
    .................................................. processed: 300 out of 417
    .................................................. processed: 350 out of 417
    .................................................. processed: 400 out of 417
    .................   Covered LOC:         15162
        Not covered LOC:     36184
        Total LOC:           51346
        Percentage Coverage: 29.53%
Built target NightlyCoverage


  Thus CDash should display 29.53%, right ?

Thanks !
-- 
Mathieu


More information about the CMake mailing list