Lines Matching refs:totals
5541 Totals totals;
5575 Totals totals;
5594 Totals totals;
5610 Totals totals;
6201 void printTotals(Totals const& totals);
6204 void printTotalsDivider(Totals const& totals);
8073 void testGroupEnded( std::string const& testSpec, Totals const& totals, std::size_t groupIndex, std::size_t groupsCount );
11098 totals( _totals )
11133 totals( _totals ),
11145 totals( _totals ),
11160 totals( _totals ),
12740 void RunContext::testGroupEnded(std::string const& testSpec, Totals const& totals, std::size_t groupIndex, std::size_t groupsCount) {
12741 m_reporter->testGroupEnded(TestGroupStats(GroupInfo(testSpec, groupIndex, groupsCount), totals, aborting()));
13351 Totals totals;
13355 totals += m_context.runTest(*testCase);
13363 totals.error = -1;
13372 m_context.testGroupEnded(m_config->name(), totals, 1, 1);
13373 return totals;
13565 auto const totals = tests.execute();
13567 if( m_config->warnAboutNoTests() && totals.error == -1 )
13573 return (std::min) (MaxExitCode, (std::max) (totals.error, static_cast<int>(totals.assertions.failed)));
15868 void printTotals(std::ostream& out, const Totals& totals) {
15869 if (totals.testCases.total() == 0) {
15871 } else if (totals.testCases.failed == totals.testCases.total()) {
15874 totals.assertions.failed == totals.assertions.total() ?
15875 bothOrAll(totals.assertions.failed) : std::string();
15877 "Failed " << bothOrAll(totals.testCases.failed)
15878 << pluralise(totals.testCases.failed, "test case") << ", "
15880 pluralise(totals.assertions.failed, "assertion") << '.';
15881 } else if (totals.assertions.total() == 0) {
15883 "Passed " << bothOrAll(totals.testCases.total())
15884 << pluralise(totals.testCases.total(), "test case")
15886 } else if (totals.assertions.failed) {
15889 "Failed " << pluralise(totals.testCases.failed, "test case") << ", "
15890 "failed " << pluralise(totals.assertions.failed, "assertion") << '.';
15894 "Passed " << bothOrAll(totals.testCases.passed)
15895 << pluralise(totals.testCases.passed, "test case") <<
15896 " with " << pluralise(totals.assertions.passed, "assertion") << '.';
16107 printTotals( stream, _testRunStats.totals );
16220 if (stats.totals.assertions.total() > 0) {
16589 printTotals(_testGroupStats.totals);
16595 printTotalsDivider(_testRunStats.totals);
16596 printTotals(_testRunStats.totals);
16711 void ConsoleReporter::printTotals( Totals const& totals ) {
16712 if (totals.testCases.total() == 0) {
16714 } else if (totals.assertions.total() > 0 && totals.testCases.allPassed()) {
16717 << pluralise(totals.assertions.passed, "assertion") << " in "
16718 << pluralise(totals.testCases.passed, "test case") << ')'
16724 .addRow(totals.testCases.total())
16725 .addRow(totals.assertions.total()));
16727 .addRow(totals.testCases.passed)
16728 .addRow(totals.assertions.passed));
16730 .addRow(totals.testCases.failed)
16731 .addRow(totals.assertions.failed));
16733 .addRow(totals.testCases.failedButOk)
16734 .addRow(totals.assertions.failedButOk));
16758 void ConsoleReporter::printTotalsDivider(Totals const& totals) {
16759 if (totals.testCases.total() > 0) {
16760 std::size_t failedRatio = makeRatio(totals.testCases.failed, totals.testCases.total());
16761 std::size_t failedButOkRatio = makeRatio(totals.testCases.failedButOk, totals.testCases.total());
16762 std::size_t passedRatio = makeRatio(totals.testCases.passed, totals.testCases.total());
16770 if (totals.testCases.allPassed())
16921 xml.writeAttribute( "failures", stats.totals.assertions.failed-unexpectedExceptions );
16922 xml.writeAttribute( "tests", stats.totals.assertions.total() );
17058 if (stats.totals.assertions.total() > 0) {
17420 e.writeAttribute( "success", testCaseStats.totals.assertions.allOk() );
17437 .writeAttribute( "successes", testGroupStats.totals.assertions.passed )
17438 .writeAttribute( "failures", testGroupStats.totals.assertions.failed )
17439 .writeAttribute( "expectedFailures", testGroupStats.totals.assertions.failedButOk );
17441 .writeAttribute( "successes", testGroupStats.totals.testCases.passed )
17442 .writeAttribute( "failures", testGroupStats.totals.testCases.failed )
17443 .writeAttribute( "expectedFailures", testGroupStats.totals.testCases.failedButOk );
17450 .writeAttribute( "successes", testRunStats.totals.assertions.passed )
17451 .writeAttribute( "failures", testRunStats.totals.assertions.failed )
17452 .writeAttribute( "expectedFailures", testRunStats.totals.assertions.failedButOk );
17454 .writeAttribute( "successes", testRunStats.totals.testCases.passed )
17455 .writeAttribute( "failures", testRunStats.totals.testCases.failed )
17456 .writeAttribute( "expectedFailures", testRunStats.totals.testCases.failedButOk );