[Boost-bugs] [Boost C++ Libraries] #12452: XML log can contain unescaped characters from test output

Subject: [Boost-bugs] [Boost C++ Libraries] #12452: XML log can contain unescaped characters from test output
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-13 11:40:36


#12452: XML log can contain unescaped characters from test output
---------------------------------------------+---------------------
 Reporter: Igor Akhmetov <igor.akhmetov@…> | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: XML |
---------------------------------------------+---------------------
 XML log format does not escape user test output, so the resulting XML file
 is not valid, e.g.

 {{{
 BOOST_AUTO_TEST_CASE(test)
 {
     std::cout << "&";
 }
 }}}

 This issue makes it impossible to parse the output with standard XML
 parsers.

 A file log sink can be used to separate Boost.Test output from user
 output. Unfortunately, the XML reporter does not flush the output stream,
 so if a unit test runner wants to show test results as soon as they are
 available, the stderr sink is the only option.

 For comparison, the Catch unit test framework redirects cout and cerr and
 later prints escaped output inside a corresponding XML node.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12452>
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:20 UTC