perform startRun() at the start of each test case

This commit is contained in:
Phil Nash 2015-11-03 07:29:23 +00:00
parent 52a417df7b
commit aa49823bc0

View File

@ -70,7 +70,6 @@ namespace Catch {
m_context.setConfig( m_config ); m_context.setConfig( m_config );
m_context.setResultCapture( this ); m_context.setResultCapture( this );
m_reporter->testRunStarting( m_runInfo ); m_reporter->testRunStarting( m_runInfo );
m_trackerContext.startRun();
} }
virtual ~RunContext() { virtual ~RunContext() {
@ -98,6 +97,7 @@ namespace Catch {
do { do {
m_trackerContext.startRun();
do { do {
m_trackerContext.startCycle(); m_trackerContext.startCycle();
m_testCaseTracker = &SectionTracker::acquire( m_trackerContext, testInfo.name ); m_testCaseTracker = &SectionTracker::acquire( m_trackerContext, testInfo.name );