Test Case counts reported separately from assertions

Test case passed/ failures are counted as well as individual assertions. The basic reporter now reports them seperately
This commit is contained in:
Phil Nash 2012-02-25 09:39:13 +00:00
parent edd8f02bec
commit 5e5698b792
2 changed files with 51 additions and 26 deletions

View file

@ -387,6 +387,11 @@ namespace Catch
delete m_runningTest;
m_runningTest = NULL;
if( m_totals.assertions.failed > prevTotals.assertions.failed )
++m_totals.testCases.failed;
else
++m_totals.testCases.passed;
m_reporter->EndTestCase( testInfo, m_totals - prevTotals, redirectedCout, redirectedCerr );
}