MantisBT - CMake
View Issue Details
0009727CMakeCTestpublic2009-10-17 03:312016-06-10 14:31
Alex Neundorf 
Kitware Robot 
normalfeaturealways
closedmoved 
 
 
0009727: add DOCUMENTATION or COMMENT test property
Hi,

it would be nice if I could set a DOCUMENTATION property (or somehing similar) for a test in my CMakeLists.txt. This documentation could then be also submitted to cdash, and when I go to the overview page for a specific test, it could display that documentation.

Alex
No tags attached.
patch test-comment.patch (1,992) 2010-02-27 13:38
https://public.kitware.com/Bug/file/2911/test-comment.patch
patch test-comment-2.patch (2,084) 2010-02-28 10:00
https://public.kitware.com/Bug/file/2914/test-comment-2.patch
Issue History
2009-10-17 03:31Alex NeundorfNew Issue
2010-02-27 13:38Alex NeundorfFile Added: test-comment.patch
2010-02-27 13:44Alex NeundorfNote Added: 0019658
2010-02-28 10:00Alex NeundorfFile Added: test-comment-2.patch
2010-02-28 10:04Alex NeundorfNote Added: 0019660
2010-12-14 16:01David ColeAssigned To => David Cole
2010-12-14 16:01David ColeStatusnew => assigned
2011-02-09 14:26David ColeStatusassigned => backlog
2011-02-09 15:10David ColeAssigned ToDavid Cole =>
2016-06-10 14:27Kitware RobotNote Added: 0041605
2016-06-10 14:27Kitware RobotStatusbacklog => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:27Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0019658)
Alex Neundorf   
2010-02-27 13:44   
I attached a patch for ctest which implements a "COMMENT" property for tests and puts it in the generated xml file, which then looks like this:

   <Test Status="passed">
      <Name>Example</Name>
      <Comment>Hello world</Comment>
      <Path>./Tests</Path>

This alone in ctest doesn't help much.
It would be nice if cdash would then use this tag and display the comment e.g. on the per-test page (e.g. http://www.cdash.org/CDash/testSummary.php?project=1&name=Example&date=2010-02-27 [^]) and also in some way on the list-of-tests page (e.g. http://www.cdash.org/CDash/viewTest.php?onlypassed&buildid=550013 [^]).
Maybe it could add a small icon behind the name of the test, as is done e.g. in the "build name" column with the "info" icon, which displays additional information when clicked.

Alex
(0019660)
Alex Neundorf   
2010-02-28 10:04   
I attached an updated patch test-comment-2.patch.
The comment is now reported as NamedMeasurement and this way it already shows up on the dashboard.
Now it would be nice if cdash could be configured to show some "NamedMeasurements" in the overview pages.

Alex
(0041605)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.