From 85c807478466c026a1e56dc076c643b553ab31ff Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 28 Jul 2015 18:26:09 +0100 Subject: [PATCH] Set group name to -n parameter (or exe name) - As discussed in #469 --- 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 @@ - + 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 @@ - +