catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Moved line info in header again
- Commit
bd5910ef9f758616111ba25df95ffd1c07673f5a- Author
- Phil Nash ·
- Parents
5062d3e92bf3
Changes
include/reporters/catch_reporter_console.hpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/reporters/catch_reporter_console.hpp b/include/reporters/catch_reporter_console.hpp index 9cd25e89..741f00b5 100644 --- a/include/reporters/catch_reporter_console.hpp +++ b/include/reporters/catch_reporter_console.hpp @@ -284,6 +284,15 @@ namespace Catch { } } + SourceLineInfo lineInfo = currentSectionInfo + ? currentSectionInfo->lineInfo + : unusedTestCaseInfo->lineInfo; + + if( !lineInfo.empty() ){ + stream << getDashes() << "\n"; + Colour colourGuard( Colour::FileName ); + stream << lineInfo << "\n"; + } stream << getDots() << "\n" << std::endl; } @@ -293,10 +302,6 @@ namespace Catch { } void printOpenHeader( std::string const& _name, SourceLineInfo const& _lineInfo = SourceLineInfo() ) { stream << getDashes() << "\n"; - if( !_lineInfo.empty() ){ - Colour colourGuard( Colour::FileName ); - stream << _lineInfo << "\n\n"; - } { Colour colourGuard( Colour::Headers ); printUserString( _name );