MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0008932 | CMake | CTest | public | 2009-04-27 12:08 | 2016-06-10 14:30 |
Reporter | Tom Vercauteren | ||||
Assigned To | Zach Mullen | ||||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0008932: Enhance coverage information by globbing for *.gcno instead of *.gcda in ctest | ||||
Description | In cdash, it would be interesting to get, in the "Coverage Summary" box, a "Total Coverage" number that is as accurate as possible. When ctest is used to generate coverage information, it looks for (gc)da files in the build directory rather than (gc)no files - cf. cmCTestCoverageHandler::FindGCovFiles in cmCTestCoverageHandler.cxx. This might lead to overestimating the coverage percentage. If I understand it correctly, when everything is setup correctly for a coverage build: - gcc generates (gc)no files at compile time - (gc)da files are generated at run time - i.e. when the unit tests are run This implies that if a given file (say myfile.cpp) is compiled in my project but its code is never executed when "make test" is called: 1) I want a line to be added in cdash that says that this file is untested 2) In the "Coverage Summary" box of cdash, the number of "Untested lines" should account for this untested file 3) In my build directory, myfile.cpp.gcno exists 4) In my build directory, myfile.cpp.gcda does not exists It therefore seems that: 1) A file such as myfile.cpp above would currently not appear at all on cdash. 2) If ctest was to report a file as being "UNTESTED" when a .gcno file is found without its .gcda counterpart, myfile.cpp would appear on cdash as being "UNTESTED" This mailing list thread might provide more information: http://www.cmake.org/pipermail/cmake/2009-April/029045.html [^] | ||||
Steps To Reproduce | |||||
Additional Information | A patch against today's cvs version of cmake is attached | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | cmake-cov-gcno-gcda-2009-04-27.patch (1,378) 2009-04-27 12:08 https://public.kitware.com/Bug/file/2190/cmake-cov-gcno-gcda-2009-04-27.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2009-04-27 12:08 | Tom Vercauteren | New Issue | |||
2009-04-27 12:08 | Tom Vercauteren | File Added: cmake-cov-gcno-gcda-2009-04-27.patch | |||
2009-04-27 12:27 | Bill Hoffman | Status | new => assigned | ||
2009-04-27 12:27 | Bill Hoffman | Assigned To | => Bill Hoffman | ||
2009-04-27 12:35 | Bill Hoffman | Note Added: 0016193 | |||
2009-04-27 12:43 | Tom Vercauteren | Note Added: 0016194 | |||
2009-10-12 15:12 | David Cole | Assigned To | Bill Hoffman => David Cole | ||
2010-06-03 08:02 | Tom Vercauteren | Note Added: 0020904 | |||
2010-06-03 09:02 | David Cole | Assigned To | David Cole => Zach Mullen | ||
2010-06-03 09:03 | David Cole | Note Added: 0020905 | |||
2010-06-03 09:20 | Zach Mullen | Note Added: 0020906 | |||
2010-06-03 09:41 | Tom Vercauteren | Note Added: 0020907 | |||
2016-06-10 14:27 | Kitware Robot | Note Added: 0041547 | |||
2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:30 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|