We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d91035 commit 84e8b69Copy full SHA for 84e8b69
include/reporters/catch_reporter_xml.hpp
@@ -97,12 +97,12 @@ namespace Catch {
97
98
bool includeResults = m_config->includeSuccessfulResults() || !result.isOk();
99
100
- if( includeResults ) {
+ if( includeResults || result.getResultType() == ResultWas::Warning ) {
101
// Print any info messages in <Info> tags.
102
for( std::vector<MessageInfo>::const_iterator it = assertionStats.infoMessages.begin(), itEnd = assertionStats.infoMessages.end();
103
it != itEnd;
104
++it ) {
105
- if( it->type == ResultWas::Info ) {
+ if( it->type == ResultWas::Info && includeResults ) {
106
m_xml.scopedElement( "Info" )
107
.writeText( it->message );
108
} else if ( it->type == ResultWas::Warning ) {
0 commit comments