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

Set group name to -n parameter (or exe name)

- As discussed in #469
Commit
85c807478466c026a1e56dc076c643b553ab31ff
Author
Phil Nash ·
Parents
0edebf41b03e

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 ac7a9148..ab6cad3c 100644
--- a/include/catch_runner.hpp
+++ b/include/catch_runner.hpp
@@ -37,7 +37,7 @@ namespace Catch {
 
             Totals totals;
 
-            context.testGroupStarting( "all tests", 1, 1 ); // deprecated?
+            context.testGroupStarting( context.config()->name(), 1, 1 );
 
             TestSpec testSpec = m_config->testSpec();
             if( !testSpec.hasFilters() )
@@ -68,7 +68,7 @@ namespace Catch {
                     ++it )
                 m_reporter->skipTest( *it );
 
-            context.testGroupEnded( "all tests", totals, 1, 1 );
+            context.testGroupEnded( context.config()->name(), totals, 1, 1 );
             return totals;
         }
 
diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt
index 59688118..dfd77437 100644
--- a/projects/SelfTest/Baselines/junit.sw.approved.txt
+++ b/projects/SelfTest/Baselines/junit.sw.approved.txt
@@ -1,5 +1,5 @@
 <testsuites>
-  <testsuite name="all tests" errors="12" failures="88" tests="804" hostname="tbd" time="{duration}" timestamp="tbd">
+  <testsuite name="CatchSelfTest" errors="12" failures="88" tests="804" 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 9740926f..213d8b6e 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 name="all tests">
+  <Group name="CatchSelfTest">
     <TestCase name="toString(enum)">
       <Expression success="true" type="CHECK" filename="projects/SelfTest/EnumToString.cpp" >
         <Original>