Progmasoft Git

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

listTests now only uses TextFlow (not tbd_text_format) again

Commit
224250e2d48c7f660e4ea55aab78350ef618a18a
Author
Phil Nash ·
Parents
5c3355ad1b6d

Files · Download .tar.gz

Changes

 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 <limits>
 #include <algorithm>
@@ -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";