mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
xml reporter reports WARN message when not used with -s
This commit is contained in:
parent
5e063616df
commit
d19b7292b3
@ -95,10 +95,10 @@ namespace Catch {
|
|||||||
|
|
||||||
bool includeResults = m_config->includeSuccessfulResults() || !result.isOk();
|
bool includeResults = m_config->includeSuccessfulResults() || !result.isOk();
|
||||||
|
|
||||||
if( includeResults ) {
|
if( includeResults || result.getResultType() == ResultWas::Warning ) {
|
||||||
// Print any info messages in <Info> tags.
|
// Print any info messages in <Info> tags.
|
||||||
for( auto const& msg : assertionStats.infoMessages ) {
|
for( auto const& msg : assertionStats.infoMessages ) {
|
||||||
if( msg.type == ResultWas::Info ) {
|
if( msg.type == ResultWas::Info && includeResults ) {
|
||||||
m_xml.scopedElement( "Info" )
|
m_xml.scopedElement( "Info" )
|
||||||
.writeText( msg.message );
|
.writeText( msg.message );
|
||||||
} else if ( msg.type == ResultWas::Warning ) {
|
} else if ( msg.type == ResultWas::Warning ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user