HomePhabricator

gui: add test runner summary

Description

gui: add test runner summary

Summary:

Append a one-line summary to the output of running ./src/qt/test/test_bitcoin-qt indicating that all tests passed or showing the number of failing tests. It's currently a bit inconvenient to see this result by eyeballing all of the output.

This PR also adds an #include <QDebug> in test_main.cpp which was missed in D18200 when introducing a qWarning() << .... From the Qt doc:

If you include <QtDebug>, a more convenient syntax is also available
qWarning() << "..."`

This is a backport of core-gui#576

Depends on D18204

Test Plan:

ninja test_bitcoin-qt
src/qt/test/test_bitcoin-qt

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18205

Details

Provenance
Jon Atack <jon@atack.com>Authored on Apr 6 2022, 20:43
PiRKCommitted on Jun 5 2025, 08:28
PiRKPushed on Jun 5 2025, 08:28
Reviewer
Restricted Project
Differential Revision
D18205: gui: add test runner summary
Parents
rABC13439b515b96: qt: fix broken unit tests on MacOS
Branches
Unknown
Tags
Unknown