Skip to content

Repository Test Suite

Unit tests for the validation and scaffolding scripts in scripts/, using Python's built-in unittest module. No external test dependency is used.

Running the tests

python -m unittest discover tests -v

What is covered

Test file Covers
test_repository_structure.py Required root files/directories, ADR presence, duplicate ID detection.
test_relative_links.py Link resolution logic in validate_links.py.
test_document_metadata.py Front-matter parsing and metadata validation rules.
test_registries.py JSON registry validation, including duplicate-field detection.
test_create_venture.py Venture scaffolding, overwrite refusal, unsafe-slug rejection.
test_create_product.py Product scaffolding, overwrite refusal, unsafe-slug rejection.

Tests that exercise the creation scripts operate against temporary directories built to mimic the real repository shape - they never modify this repository's actual ventures/ or portfolio/ content.


Report an issue about this page