about summary refs log tree commit diff
path: root/src/ci/citool
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-04-17 17:25:12 +0200
committerJakub Beránek <berykubik@gmail.com>2025-04-17 17:25:12 +0200
commitaa9cb70190bb38e466983abf0c53c6f26afab4de (patch)
tree92aeb84938b4e43e654f6301e86982e8981b8ef2 /src/ci/citool
parentd2c1763336080030a235dae56f6096e9deb2ec9f (diff)
Print number of root tests and subdirectories
Diffstat (limited to 'src/ci/citool')
-rw-r--r--src/ci/citool/templates/test_group.askama7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ci/citool/templates/test_group.askama b/src/ci/citool/templates/test_group.askama
index ba19d9258d8..bdf32d00f4a 100644
--- a/src/ci/citool/templates/test_group.askama
+++ b/src/ci/citool/templates/test_group.askama
@@ -4,7 +4,12 @@ passed: {{ r.passed.len() }}, ignored: {{ r.ignored.len() }}
 
 <li>
 <details>
-<summary>{{ name }} ({{ test_count() }} test{{ test_count() | pluralize }})</summary>
+<summary>{{ name }} ({{ test_count() }} test{{ test_count() | pluralize }}{% if !root_tests.is_empty() && root_tests.len() as u64 != test_count() -%}
+    , {{ root_tests.len() }} root test{{ root_tests.len() | pluralize }}
+{%- endif %}{% if !groups.is_empty() -%}
+    , {{ groups.len() }} subdir{{ groups.len() | pluralize }}
+{%- endif %})
+</summary>
 
 {% if !groups.is_empty() %}
 <ul>