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

Give (currently not used, so global only) group a name

Commit
3e1d3c72712db3fe4ec7ed288ca9ae011660d1a7
Author
Phil Nash ·
Parents
886ef1620a22

Files · Download .tar.gz

Changes

 include/catch_runner.hpp                          | 4 ++--
 projects/SelfTest/Baselines/junit.sw.approved.txt | 2 +-
 projects/SelfTest/Baselines/xml.sw.approved.txt   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/catch_runner.hpp b/include/catch_runner.hpp
index 42069b9f..e6303d88 100644
--- a/include/catch_runner.hpp
+++ b/include/catch_runner.hpp
@@ -37,7 +37,7 @@ namespace Catch {
 
             Totals totals;
 
-            context.testGroupStarting( "", 1, 1 ); // deprecated?
+            context.testGroupStarting( "all tests", 1, 1 ); // deprecated?
 
             TestSpec testSpec = m_config->testSpec();
             if( !testSpec.hasFilters() )
@@ -60,7 +60,7 @@ namespace Catch {
                     m_testsAlreadyRun.insert( *it );
                 }
             }
-            context.testGroupEnded( "", totals, 1, 1 );
+            context.testGroupEnded( "all tests", totals, 1, 1 );
             return totals;
         }
 
diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt
index 07984f57..7529791d 100644
--- a/projects/SelfTest/Baselines/junit.sw.approved.txt
+++ b/projects/SelfTest/Baselines/junit.sw.approved.txt
@@ -1,5 +1,5 @@
 <testsuites>
-  <testsuite errors="12" failures="87" tests="759" hostname="tbd" time="{duration}" timestamp="tbd">
+  <testsuite name="all tests" errors="12" failures="87" tests="759" hostname="tbd" time="{duration}" timestamp="tbd">
     <testcase classname="global" name="toString(enum)" time="{duration}"/>
     <testcase classname="global" name="toString(enum w/operator&lt;&lt;)" time="{duration}"/>
     <testcase classname="global" name="toString(enum class)" time="{duration}"/>
diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt
index 146a9eb3..200c28f7 100644
--- a/projects/SelfTest/Baselines/xml.sw.approved.txt
+++ b/projects/SelfTest/Baselines/xml.sw.approved.txt
@@ -1,5 +1,5 @@
 <Catch name="CatchSelfTest">
-  <Group>
+  <Group name="all tests">
     <TestCase name="toString(enum)">
       <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch-Dev/projects/SelfTest/EnumToString.cpp" >
         <Original>