Library / Code module
Requirements traceability matrix and coverage gaps
requirements_traceability
Build a matrix linking requirements to design elements and tests, give each requirement a test status, and list requirements without design, tests or a pass, and links to nothing.
ATTRIBUTION.md4.9 KBLICENSE1.0 KBONET-ATTRIBUTION.md5.5 KBPROCEDURE.md2.1 KBREADME.md4.3 KBTOOLS.md2.0 KBcomponent.json10.9 KBexamples/known_good.json2.2 KBexamples/known_wrong.json354 byteskit_schema.py11.4 KBrequirements_traceability.py7.0 KBtest_package.py6.8 KB
Full files in your harness.
What it takes and gives
- Runs with
- Python 3.10 or later
- Command
python3 requirements_traceability.py < input.json- Function
requirements_traceability.run- Required input
- requirements, tests
Cases it covers
- Known wrong example: Test T1 verifies requirement R9, which is not listed, so coverage would count a requirement nobody wrote. Refused as unknown requirement.
- input invalid: refused with exit code 2
- input not json: refused with exit code 2
- duplicate id: refused with exit code 2
- unknown requirement: refused with exit code 2
Limits and scope
- Limits
- A link is trusted as declared; the helper cannot tell whether a test really verifies the requirement. Status uses the latest result per test only. When no design elements are given, the without_design gap is left empty and design_checked is false.
- Work activities
- Collaborate with others to determine design specifications or details; Analyze project data to determine specifications or requirements; Evaluate designs or specifications to ensure quality.
Details
- Kind
- Code module
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Source
- github.com/alisonjieli-png/loop-engine/tools/creative_originals/occupation_task_kits/items/requirements_traceability
- Size
- 12 files, 58.4 KB
- Identity
library.supply.creative_originals.ce1e1dc014075e14bf7ab0de.9cc6f077d368fe42- Version
9cc6f077d368fe429f807b8f5ff5847069049b5f2d945497249654de16d91e89
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Where it is shown
- Records, schedules and budgetsDeterministic skills
Related components
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.