[Boost-bugs] [Boost C++ Libraries] #3636: make XML output of test report XML-compliant

Subject: [Boost-bugs] [Boost C++ Libraries] #3636: make XML output of test report XML-compliant
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-18 09:20:06


#3636: make XML output of test report XML-compliant
----------------------------------------+-----------------------------------
 Reporter: Ákos Maróy <akos@…> | Owner: rogeeff
     Type: Feature Requests | Status: new
Milestone: Boost 1.41.0 | Component: test
  Version: Boost 1.40.0 | Severity: Cosmetic
 Keywords: |
----------------------------------------+-----------------------------------
 I have a suggestion for the XML output generated by the boost unit test
 framework: currently, if tests fail, the message detailing the failure of
 the test is put in verbatim as a test element into the XML output. This
 can be problematic, if the output contains XML-like structures, like text
 that looks like an XML element, or invalid characters.

 thus, I'd suggest enclosing such output in a CDATA section, that would
 ensure that the generated XML file is indeed always well formed XML. see
 more here: http://www.w3.org/TR/REC-xml/#sec-cdata-sect - but basically
 this would mean printing the failures like this:

 {{{
 <![CDATA[ reason of the failure... ]]>
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3636>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC