Build a traceability report linking requirements to tests.
Input:
R <n>
<n lines: requirementId description...>
T <m>
<m lines: testId covered-requirement-ids separated by commas (or "-" for none)>
Output:
- One line per requirement, in input order:
REQ-ID: T1, T2(its tests in input order) orREQ-ID: NOT COVERED. Coverage: c/n (P%)— requirements with at least one test,Prounded down to an integer.Orphan tests: ...— tests that cover no known requirement (either-or only unknown IDs), in input order, separated by,, orOrphan tests: none.Unknown references: ...— test→ID pairs whose ID is not a requirement, asT9->R42, in input order, orUnknown references: none.
Input:
R 3
R1 Login with WKU account
R2 Hide post after 3 reports
R3 Buddy hints only for graded work
T 4
T1 R1
T2 R1,R2
T3 -
T4 R7
Output:
R1: T1, T2
R2: T2
R3: NOT COVERED
Coverage: 2/3 (66%)
Orphan tests: T3, T4
Unknown references: T4->R7