From 8da4918aa10340ef52177977a8bcad489419f8e2 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 18 Jul 2020 18:13:18 +0200 Subject: quotest: log final report as late as possible ...to spare the developer from scrolling up in the search of it. --- tests/quotest.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/quotest.cpp b/tests/quotest.cpp index e47bf651..b06665a9 100644 --- a/tests/quotest.cpp +++ b/tests/quotest.cpp @@ -614,12 +614,10 @@ TEST_IMPL(markDirectChat) void TestManager::conclude() { - auto succeededRec = QString::number(succeeded.size()) + " tests succeeded"; - if (!failed.empty() || !running.empty()) - succeededRec += - " of " - % QString::number(succeeded.size() + failed.size() + running.size()) - % " total"; + QString succeededRec { QString::number(succeeded.size()) % " of " + % QString::number(succeeded.size() + failed.size() + + running.size()) + % " tests succeeded" }; QString plainReport = origin % ": Testing complete, " % succeededRec; QString color = failed.empty() && running.empty() ? "00AA00" : "AA0000"; QString htmlReport = origin % ":