Skip to content

Commit ba44aae

Browse files
committed
gui: add test runner summary
1 parent 41720a1 commit ba44aae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/qt/test/test_main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
#endif // ENABLE_WALLET
2222

2323
#include <QApplication>
24+
#include <QDebug>
2425
#include <QObject>
2526
#include <QTest>
27+
2628
#include <functional>
2729

2830
#if defined(QT_STATICPLUGIN)
@@ -113,5 +115,10 @@ int main(int argc, char* argv[])
113115
}
114116
#endif
115117

118+
if (fInvalid) {
119+
qWarning("\nThere were errors in some of the tests above.\n");
120+
} else {
121+
qDebug("\nAll tests passed.\n");
122+
}
116123
return fInvalid;
117124
}

0 commit comments

Comments
 (0)