First cut of generators

This commit is contained in:
Phil Nash
2011-01-26 23:23:33 +00:00
parent 455c2998a0
commit c2b96d7ddb
8 changed files with 256 additions and 21 deletions

View File

@@ -199,10 +199,14 @@ namespace Catch
do
{
m_runningTest.resetSectionSeen();
runCurrentTest( redirectedCout, redirectedCerr );
do
{
m_runningTest.resetSectionSeen();
runCurrentTest( redirectedCout, redirectedCerr );
}
while( m_runningTest.wasSectionSeen() );
}
while( m_runningTest.wasSectionSeen() );
while( Hub::advanceGeneratorsForCurrentTest() );
m_runningTest = RunningTest();
@@ -358,6 +362,15 @@ namespace Catch
{
return m_config.shouldDebugBreak();
}
///////////////////////////////////////////////////////////////////////////
virtual std::string getCurrentTestName
()
const
{
return m_runningTest.getTestCaseInfo().getName();
}
private:
///////////////////////////////////////////////////////////////////////////