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

- As discussed in #469
This commit is contained in:
Phil Nash 2015-07-28 18:26:09 +01:00
parent 0edebf41b0
commit 85c8074784
3 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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}"/>

View File

@ -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>