Skip to main content

Traceability with Sphinx-Needs

Process · RemotiveCar v0.9.0

  • Lighting

Run it​

git clone https://github.com/remotivelabs/remotivelabs-remotive-car.git
cd remotivelabs-remotive-car

pip install -r docs/requirements.txt

sphinx-build -W -b html docs build/html

Open build/html/index.html.

Sphinx-Needs allows you to combine Docs-as-Code with Application Lifecycle Management, to track requirements, specifications, test cases, and other engineering objects in your documentation.

This example adds ISO 26262-style traceability to RemotiveCar, developed together with useblocks. It is a limited sample of what the full documentation would look like: features, system and component requirements, the ECUs, channels and behavioral models of the platform, the test cases that verify them, and FMEA entries, all as linked "needs" in .rst files next to the code.

Feature <- (satisfies) <- System Req <- (satisfies) <- Component Req <- (verifies) <- Test Case
^
(mitigates) FMEA Entry

Build the HTML documentation (PlantUML and Python 3.10 or later are needed):

pip install -r docs/requirements.txt
sphinx-build -W -b html docs build/html

Then open build/html/index.html.

Notice:

  • -W turns warnings into errors, so a missing ASIL rating or a test case that verifies nothing fails the build.