diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-07-07 13:51:49 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-07-09 10:36:48 +0200 |
| commit | d6001e8f48275084473555e174fa70cc12fcba75 (patch) | |
| tree | 9915c2183cafd803a5ea571c89fa320fe6103e31 /testing/command.py | |
| parent | 8c5896ca00e23fbfba4ddc07b48dc051c0c2913c (diff) | |
testrunner.py: Log slow tests
Pick-to: 6.9
Change-Id: If1da4deda2c059755d30c0f25f32d49e0868643f
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'testing/command.py')
| -rw-r--r-- | testing/command.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testing/command.py b/testing/command.py index be4ed8a07..6b2a18e62 100644 --- a/testing/command.py +++ b/testing/command.py @@ -117,9 +117,13 @@ def test_project(project, args, blacklist, runs): # PYSIDE-1229: When a fatal error happens, bail out immediately! if item.fatal: fatal = item - print() + + print("\n #### Top 20 slow tests:") + for item in results.get_slowest_tests(20): + print(f" {item.mod_name:<50} {item.time:6}s") + print( - f"Totals: {sum(r)} tests. " + f"\nTotals: {sum(r)} tests. " f"{r[0]} passed, {r[1]} failed, {r[2]} skipped, {r[3]} blacklisted, {r[4]} bpassed." ) print() |
