mirror of https://github.com/catchorg/Catch2.git
Don't report durations if not reporter anything else
This commit is contained in:
parent
357d654641
commit
f41fad7e20
|
@ -67,9 +67,11 @@ namespace Catch {
|
|||
stream << "\nNo assertions in test case";
|
||||
stream << " '" << _sectionStats.sectionInfo.name << "'\n" << std::endl;
|
||||
}
|
||||
m_headerPrinted = false;
|
||||
if( m_headerPrinted ) {
|
||||
if( m_config->showDurations() == ShowDurations::Always )
|
||||
stream << "Completed in " << _sectionStats.durationInSeconds << "s" << std::endl;
|
||||
m_headerPrinted = false;
|
||||
}
|
||||
StreamingReporterBase::sectionEnded( _sectionStats );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue