View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007077CMakeCTestpublic2008-05-21 18:172008-05-23 11:31
ReporterTimothy Shead 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007077: CTest ignores <DartMeasurement> tags with type "text/html"
DescriptionAlthough 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
TagsNo tags attached.
Attached Files? file icon test.measurements.py [^] (697 bytes) 2008-05-21 18:17
txt file icon CMakeLists.txt [^] (138 bytes) 2008-05-21 18:17 [Show Content]
? file icon CTestConfig.cmake [^] (386 bytes) 2008-05-21 18:18
patch file icon html_measurement.patch [^] (2,127 bytes) 2008-05-23 02:29 [Show Content]

 Relationships

  Notes
(0012052)
Timothy Shead (reporter)
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 (reporter)
2008-05-23 02:30

Attached a patch to support text/html and text/xml measurements.
(0012092)
Bill Hoffman (manager)
2008-05-23 11:31

Thanks, I have applied your patch into CVS, should be in 2.6.1.

 Issue History
Date Modified Username Field Change
2008-05-21 18:17 Timothy Shead New Issue
2008-05-21 18:17 Timothy Shead File Added: test.measurements.py
2008-05-21 18:17 Timothy Shead File Added: CMakeLists.txt
2008-05-21 18:18 Timothy Shead File Added: CTestConfig.cmake
2008-05-21 18:18 Timothy Shead Note Added: 0012052
2008-05-23 02:29 Timothy Shead File Added: html_measurement.patch
2008-05-23 02:30 Timothy Shead Note Added: 0012087
2008-05-23 11:31 Bill Hoffman Status new => closed
2008-05-23 11:31 Bill Hoffman Note Added: 0012092
2008-05-23 11:31 Bill Hoffman Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team