Skip to content

Commit

Permalink
Set group name to -n parameter (or exe name)
Browse files Browse the repository at this point in the history
- As discussed in #469
  • Loading branch information
philsquared committed Jul 28, 2015
1 parent 0edebf4 commit 85c8074
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/catch_runner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion projects/SelfTest/Baselines/junit.sw.approved.txt
Original file line number Diff line number Diff line change
@@ -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}"/>
Expand Down
2 changes: 1 addition & 1 deletion projects/SelfTest/Baselines/xml.sw.approved.txt
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit 85c8074

Please sign in to comment.