gui: add test runner summary

This commit is contained in:
Jon Atack
2022-04-06 22:43:11 +02:00
parent 41720a1f54
commit ba44aae768

View File

@@ -21,8 +21,10 @@
#endif // ENABLE_WALLET
#include <QApplication>
#include <QDebug>
#include <QObject>
#include <QTest>
#include <functional>
#if defined(QT_STATICPLUGIN)
@@ -113,5 +115,10 @@ int main(int argc, char* argv[])
}
#endif
if (fInvalid) {
qWarning("\nThere were errors in some of the tests above.\n");
} else {
qDebug("\nAll tests passed.\n");
}
return fInvalid;
}