MantisBT - CMake
View Issue Details
0007077CMakeCTestpublic2008-05-21 18:172008-05-23 11:31
Timothy Shead 
 
normalminoralways
closedfixed 
CMake-2-6 
 
0007077: CTest ignores <DartMeasurement> tags with type "text/html"
Although the wiki page at http://public.kitware.com/Wiki/CDash:DartMeasurement [^] describes <DartMeasurement> data with type "text/html", CTest does not foward HTML data to CDash. Having an ability to submit HTML data to the CDash server would be a big help to us - in particular, we're interested in using the Google Chart API (http://code.google.com/apis/chart/ [^]) to embed charts in our tests as HTML <img> tags.

The attached Python test script writes several different varieties of <DartMeasurement> tag to stdout. I note that in the Test.xml file generated by CTest, most of the tags are present, but the "text/html" and "text/xml" tags are not:

<Testing>
  <StartDateTime>May 21 15:40 MDT</StartDateTime>
  <StartTestTime>1211406053</StartTestTime>
  <TestList>
    <Test>./foo1</Test>
  </TestList>
  <Test Status="passed">
    <Name>foo1</Name>
    <Path>.</Path>
    <FullName>./foo1</FullName>
    <FullCommandLine>/usr/bin/python /Users/tshead/src/cdash_test/test.measurements.py</FullCommandLine>
    <Results>
      <NamedMeasurement name="Test_Float" type="numeric/float"><Value>0.12</Value></NamedMeasurement>
      <NamedMeasurement name="Test_Integer" type="numeric/integer"><Value>12</Value></NamedMeasurement>
      <NamedMeasurement name="Test_String" type="text/string"><Value>A simple message</Value></NamedMeasurement>
      <NamedMeasurement name="Test_Text" type="text/text"><Value>A longer message</Value></NamedMeasurement>
      <NamedMeasurement type="numeric/double" name="Execution Time"><Value>0</Value></NamedMeasurement>
      <NamedMeasurement type="text/string" name="Completion Status"><Value>Completed</Value></NamedMeasurement>
      <NamedMeasurement type="text/string" name="Command Line"><Value>/usr/bin/python /Users/tshead/src/cdash_test/test.measurements.py</Value></NamedMeasurement>
      <Measurement>
        <Value>
</Value>
      </Measurement>
    </Results>
  </Test>
  <EndDateTime>May 21 15:40 MDT</EndDateTime>
  <EndTestTime>1211406053</EndTestTime>
<ElapsedMinutes>0</ElapsedMinutes></Testing>

I am using the new CMake 2.6:

$ ctest --version
ctest version 2.6-patch 0
No tags attached.
? test.measurements.py (697) 2008-05-21 18:17
https://public.kitware.com/Bug/file/1485/test.measurements.py
txt CMakeLists.txt (138) 2008-05-21 18:17
https://public.kitware.com/Bug/file/1486/CMakeLists.txt
? CTestConfig.cmake (386) 2008-05-21 18:18
https://public.kitware.com/Bug/file/1487/CTestConfig.cmake
patch html_measurement.patch (2,127) 2008-05-23 02:29
https://public.kitware.com/Bug/file/1491/html_measurement.patch
Issue History
2008-05-21 18:17Timothy SheadNew Issue
2008-05-21 18:17Timothy SheadFile Added: test.measurements.py
2008-05-21 18:17Timothy SheadFile Added: CMakeLists.txt
2008-05-21 18:18Timothy SheadFile Added: CTestConfig.cmake
2008-05-21 18:18Timothy SheadNote Added: 0012052
2008-05-23 02:29Timothy SheadFile Added: html_measurement.patch
2008-05-23 02:30Timothy SheadNote Added: 0012087
2008-05-23 11:31Bill HoffmanStatusnew => closed
2008-05-23 11:31Bill HoffmanNote Added: 0012092
2008-05-23 11:31Bill HoffmanResolutionopen => fixed

Notes
(0012052)
Timothy Shead   
2008-05-21 18:18   
This issue was originally reported on the CDash tracker as

http://public.kitware.com/Bug/view.php?id=7063 [^]
(0012087)
Timothy Shead   
2008-05-23 02:30   
Attached a patch to support text/html and text/xml measurements.
(0012092)
Bill Hoffman   
2008-05-23 11:31   
Thanks, I have applied your patch into CVS, should be in 2.6.1.