Don't report durations if not reporter anything else

This commit is contained in:
Phil Nash 2013-08-16 18:57:41 +01:00
parent 357d654641
commit f41fad7e20

View File

@ -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 );
}