From 224250e2d48c7f660e4ea55aab78350ef618a18a Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Thu, 20 Jul 2017 19:50:47 +0100 Subject: [PATCH] listTests now only uses TextFlow (not tbd_text_format) again --- include/internal/catch_list.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/internal/catch_list.cpp b/include/internal/catch_list.cpp index 1d5f9e49..c7e90693 100644 --- a/include/internal/catch_list.cpp +++ b/include/internal/catch_list.cpp @@ -12,12 +12,11 @@ #include "catch_interfaces_reporter.h" #include "catch_interfaces_testcase.h" -#include "catch_text.h" - #include "catch_clara.h" // For TextFlow #include "catch_console_colour.hpp" #include "catch_test_spec_parser.hpp" +#include "catch_tostring.h" #include #include @@ -45,13 +44,11 @@ namespace Catch { Catch::cout() << Column( testCaseInfo.name ).initialIndent( 2 ).indent( 4 ) << "\n"; if( config.verbosity() >= Verbosity::High ) { - TextAttributes descAttr; - descAttr.setIndent( 4 ); - Catch::cout() << Text( testCaseInfo.lineInfo, descAttr ) << std::endl; + Catch::cout() << Column( Catch::Detail::stringify( testCaseInfo.lineInfo ) ).indent(4) << std::endl; std::string description = testCaseInfo.description; if( description == "" ) description = "(NO DESCRIPTION)"; - Catch::cout() << Text( description, descAttr ) << std::endl; + Catch::cout() << Column( description ).indent(4) << std::endl; } if( !testCaseInfo.tags.empty() ) Catch::cout() << Column( testCaseInfo.tagsAsString ).indent( 6 ) << "\n";