mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-02 08:01:54 +01:00
Added StringMaker (for partially specialising string conversions), extended BDD macros and moved file/line info to top of message.
Re-enable ANSI colour by default - hopefully properly excluding Windows this time
This commit is contained in:
@@ -78,13 +78,15 @@ namespace Catch {
|
||||
return false;
|
||||
}
|
||||
|
||||
void endSection( const std::string& ) {
|
||||
void endSection( const std::string&, bool stealth ) {
|
||||
if( m_currentSection->ran() ) {
|
||||
m_runStatus = RanAtLeastOneSection;
|
||||
if( !stealth )
|
||||
m_runStatus = RanAtLeastOneSection;
|
||||
m_changed = true;
|
||||
}
|
||||
else if( m_runStatus == EncounteredASection ) {
|
||||
m_runStatus = RanAtLeastOneSection;
|
||||
if( !stealth )
|
||||
m_runStatus = RanAtLeastOneSection;
|
||||
m_lastSectionToRun = m_currentSection;
|
||||
}
|
||||
m_currentSection = m_currentSection->getParent();
|
||||
|
||||
Reference in New Issue
Block a user