From 74d962f1ef741dbc9c1f80258397cd3906d73a79 Mon Sep 17 00:00:00 2001 From: Anton Krivoborodov Date: Sun, 30 Aug 2026 09:11:30 +0000 Subject: [PATCH] feat: show test results in module verification report The requirements tables of the module verification report listed the backlinks `fully_verifies_back` and `partially_verifies_back`, which render as bare need ids (e.g. `testcase__CheckBit__WithUInt8_gavap`). That neither tells the reader whether a test passed nor links to the test source. Use the `testlink` option instead, which is populated by the `test_code_linker` string link. It renders the test name together with its result and links to the corresponding line in the test file. The `doctree-resolved` hook `annotate_testcase_results` then colours the `(passed|failed|skipped|disabled)` suffix. Applied to both requirements tables: - feature level ("Requirements Statistics", feat_req) - component level ("Requirements Traceability", comp_req) Verified against eclipse-score/baselibs: the report now renders 43 `(passed)` badges with clickable source links, up from none. --- src/needs_templates/module_verification_report.need | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/needs_templates/module_verification_report.need b/src/needs_templates/module_verification_report.need index 674c4380f..64bbbcea8 100644 --- a/src/needs_templates/module_verification_report.need +++ b/src/needs_templates/module_verification_report.need @@ -140,8 +140,8 @@ Requirements Statistics .. needtable:: :filter: type == "feat_req" and "{{ feature_id }}" in satisfied_by :style: table - :columns: id;title;safety;status;fully_verifies_back;partially_verifies_back - :colwidths: 13,22,8,10,23,24 + :columns: id;title;safety;status;testlink + :colwidths: 13,22,8,10,47 :sort: id Architecture Statistics @@ -298,8 +298,8 @@ verification status and the tests that (fully or partially) verify them: .. needtable:: :filter: type == "comp_req" and "{{ component_id }}" in satisfied_by :style: table - :columns: id;title;safety;status;fully_verifies_back;partially_verifies_back - :colwidths: 13,22,8,10,23,24 + :columns: id;title;safety;status;testlink + :colwidths: 13,22,8,10,47 :sort: id Test Coverage