mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-29 16:53:30 +01:00
Changed console reporter test duration reporting format
Was "<section-name> completed in XXX s." Now is "XXX s: <section-name>" Closes #322 (cherry picked from commit 0805539)
This commit is contained in:
parent
d8c4512b25
commit
9bab7c8229
@ -67,14 +67,11 @@ namespace Catch {
|
|||||||
stream << "\nNo assertions in test case";
|
stream << "\nNo assertions in test case";
|
||||||
stream << " '" << _sectionStats.sectionInfo.name << "'\n" << std::endl;
|
stream << " '" << _sectionStats.sectionInfo.name << "'\n" << std::endl;
|
||||||
}
|
}
|
||||||
if( m_headerPrinted ) {
|
if( m_config->showDurations() == ShowDurations::Always ) {
|
||||||
if( m_config->showDurations() == ShowDurations::Always )
|
stream << _sectionStats.durationInSeconds << " s: " << _sectionStats.sectionInfo.name << std::endl;
|
||||||
stream << "Completed in " << _sectionStats.durationInSeconds << 's' << std::endl;
|
|
||||||
m_headerPrinted = false;
|
|
||||||
}
|
}
|
||||||
else {
|
if( m_headerPrinted ) {
|
||||||
if( m_config->showDurations() == ShowDurations::Always )
|
m_headerPrinted = false;
|
||||||
stream << _sectionStats.sectionInfo.name << " completed in " << _sectionStats.durationInSeconds << 's' << std::endl;
|
|
||||||
}
|
}
|
||||||
StreamingReporterBase::sectionEnded( _sectionStats );
|
StreamingReporterBase::sectionEnded( _sectionStats );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user