mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
XmlReporter: Trim test case name; added description and tags attributes to the test case element in the xml report.
This commit is contained in:
parent
7db4d8d90c
commit
aafc3f58c9
@ -53,7 +53,10 @@ namespace Catch {
|
|||||||
|
|
||||||
virtual void testCaseStarting( TestCaseInfo const& testInfo ) CATCH_OVERRIDE {
|
virtual void testCaseStarting( TestCaseInfo const& testInfo ) CATCH_OVERRIDE {
|
||||||
StreamingReporterBase::testCaseStarting(testInfo);
|
StreamingReporterBase::testCaseStarting(testInfo);
|
||||||
m_xml.startElement( "TestCase" ).writeAttribute( "name", testInfo.name );
|
m_xml.startElement( "TestCase" )
|
||||||
|
.writeAttribute( "name", trim( testInfo.name ) )
|
||||||
|
.writeAttribute( "description", testInfo.description )
|
||||||
|
.writeAttribute( "tags", testInfo.tagsAsString );
|
||||||
|
|
||||||
if ( m_config->showDurations() == ShowDurations::Always )
|
if ( m_config->showDurations() == ShowDurations::Always )
|
||||||
m_testCaseTimer.start();
|
m_testCaseTimer.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user