Skip to content

Commit 5f528bc

Browse files
tbitcsoz-agent
andcommitted
fix: orphaned-test check uses all_req_ids not filtered req_ids
Tests that cover Draft requirements were incorrectly flagged as 'orphaned' because the coverage check filters out Draft reqs. Use all_req_ids (before the Draft filter) for orphan detection. Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 5864c9d commit 5f528bc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/specsmith/auditor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,9 @@ def check_req_test_consistency(root: Path) -> list[AuditResult]:
231231
)
232232
)
233233

234-
# Orphaned tests
235-
orphaned = covered_reqs - req_ids
234+
# Orphaned tests: use all_req_ids so tests covering Draft requirements
235+
# are not incorrectly flagged as orphaned.
236+
orphaned = covered_reqs - all_req_ids
236237
if orphaned:
237238
results.append(
238239
AuditResult(

0 commit comments

Comments
 (0)