IEC 62304 requirements traceability for pytest.
jamb links your pytest tests to requirements, generating traceability matrices for regulatory submissions. It's designed for medical device software and other regulated industries where you need to prove every requirement has been tested.
pip install jamb# Initialize a project with IEC 62304 documents
jamb init
# Add and link requirements
jamb item add SRS
jamb item edit SRS001
jamb link add SRS001 SYS001import pytest
@pytest.mark.requirement("SRS001")
def test_valid_credentials():
assert authenticate("admin", "secret") is True# Generate traceability matrix
pytest --jamb --jamb-trace-matrix matrix.htmlFull documentation is available at jamb.readthedocs.io.
- Quickstart -- get up and running
- Concepts -- suspect links, review cycles, document hierarchy
- Configuration --
pyproject.tomland document settings - pytest Integration -- markers, options, and matrix formats
- CI/CD -- GitHub Actions, pre-commit hooks