-
Notifications
You must be signed in to change notification settings - Fork 8
5 REQ trace
Tracing requirements down to code level provides better overview of the project status, and helps with impact analysis. It is also mandatory to achieve certain certifications.
Only traces at code level are considered, because traces between requirements are already covered by most project management tools.
The requirement ID must be used for tracing, because the ID uniquely identifies a requirement.
To know where a trace is located, the file path and line number must be stored. This information helps developers with project navigation and is needed for coverage analysis.
Some requirements cannot be traced, because there is no related artifact a trace could be applied to. Therefore, it must be possible to specify requirements that need to be traced manually. The required action for manually traced requirements may vary between projects.
More than one requirement may affect the same code. Therefore, it must be possible to specify more than one requirement at the same origin.
Only traces intended by developers must be detected, because falsely detected traces result in unreliable trace data. Therefore, traces found in commented code must be ignored, and language syntax should be used to further restrict trace detection.
If no language specific syntax can be used to trace requirements, the following syntax must be used inside comments:
[req:<requirement ID>]
Note: <requirement ID> is used as placeholder for the actual ID to trace.
As a developer, I want to see the impact of a code change to the trace data, before merging these changes, because this helps to identify if all needed changes were done, or some were wrongfully introduced.
Please create an issue if you found any spelling mistakes.
You may also create an issue if you think the content of this wiki should be improved.
Note: This wiki is managed in its own repository. Any commits made using the edit button will be overwritten.
Note: Issues for the wiki are handled in the mantra repository, but pull requests for the wiki are handled in the mantra-wiki repository.
This wiki is MIT licensed, and works together with mantra.