mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 14:09:26 +00:00
Removed now redundant handling for missing assertions in test cases
- handled as part of sections
This commit is contained in:
parent
e8cf726a23
commit
649f8c24b1
4 changed files with 0 additions and 21 deletions
|
@ -126,23 +126,13 @@ namespace Catch {
|
|||
while( getCurrentContext().advanceGeneratorsForCurrentTest() && !aborting() );
|
||||
|
||||
Totals deltaTotals = m_totals.delta( prevTotals );
|
||||
bool missingAssertions = false;
|
||||
if( deltaTotals.assertions.total() == 0 && m_config->warnAboutMissingAssertions() ) {
|
||||
m_totals.assertions.failed++;
|
||||
deltaTotals = m_totals.delta( prevTotals );
|
||||
missingAssertions = true;
|
||||
}
|
||||
|
||||
m_totals.testCases += deltaTotals.testCases;
|
||||
|
||||
m_reporter->testCaseEnded( TestCaseStats( testInfo,
|
||||
deltaTotals,
|
||||
redirectedCout,
|
||||
redirectedCerr,
|
||||
missingAssertions,
|
||||
aborting() ) );
|
||||
|
||||
|
||||
m_activeTestCase = NULL;
|
||||
m_testCaseTracker.reset();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue