Boost C++ Libraries: Ticket #11983: Boost Test XML Report contains unescaped XML characters https://svn.boost.org/trac10/ticket/11983 <p> I've encountered problems with the boost test reports in XML format. They contain unescaped characters ("&lt;" and "&gt;") in the <a class="missing wiki">TestCase</a> name attribute for template tests. Here is a minimal example: </p> <pre class="wiki">#define BOOST_TEST_MODULE huhu #include &lt;boost/test/included/unit_test.hpp&gt; #include &lt;boost/test/test_case_template.hpp&gt; #include &lt;boost/mpl/list.hpp&gt; typedef boost::mpl::list&lt;int&gt; types; BOOST_AUTO_TEST_CASE_TEMPLATE( test, Type, types ) {} </pre><p> When running with <code>--report_format=XML --report_level=detailed</code>, this will include the following in the XML report: </p> <pre class="wiki">&lt;TestCase name="test&lt;i&gt;" result="passed"... </pre><p> The "&lt;" and "&gt;" characters inside the name attribute must be escaped according to the XML specifications. </p> <p> I verified, that boost versions 1.53, 1.54 and 1.59 correctly escaped those characters. Interestingly , the unescaped characters appear in the XML report only. The XML logger is not affected for all boost versions including 1.60. When running with <code>--log_format=XML --log_level=all</code> any boost test version correctly prints </p> <pre class="wiki">&lt;TestCase name="test&amp;lt;i&amp;gt;" ... </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11983 Trac 1.4.3 Raffi Enficiaud Tue, 16 Feb 2016 23:48:41 GMT owner, status changed https://svn.boost.org/trac10/ticket/11983#comment:1 https://svn.boost.org/trac10/ticket/11983#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Gennadiy Rozental</span> to <span class="trac-author">Raffi Enficiaud</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Raffi Enficiaud Wed, 17 Feb 2016 00:17:18 GMT milestone changed https://svn.boost.org/trac10/ticket/11983#comment:2 https://svn.boost.org/trac10/ticket/11983#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.61.0</span> </li> </ul> Ticket Raffi Enficiaud Wed, 17 Feb 2016 00:17:36 GMT <link>https://svn.boost.org/trac10/ticket/11983#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11983#comment:3</guid> <description> <p> Fixed in branch topic/trac-11983-xml-escape-in-report </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Mon, 29 Feb 2016 07:49:59 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11983#comment:4 https://svn.boost.org/trac10/ticket/11983#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Merged to master rev 6a3a616 </p> Ticket