US04-06: Automate Phase D End-to-End Acceptance (#70)

This commit was merged in pull request #70.
This commit is contained in:
2026-08-16 12:06:02 +02:00
parent 8d96acd067
commit 799e58ca21
6 changed files with 530 additions and 87 deletions

View File

@@ -12,12 +12,19 @@ from pathlib import Path
REPO = Path(__file__).resolve().parents[2]
MAP = json.loads((REPO / "tests" / "story_traceability.json").read_text())["stories"]
PHASE_A_STORIES = {f"US01-0{n}" for n in range(1, 8)}
PHASE_D_STORIES = {f"US04-0{n}" for n in range(1, 7)}
def test_all_phase_a_stories_are_mapped():
assert PHASE_A_STORIES <= set(MAP)
def test_all_phase_d_stories_are_mapped():
"""US04-06 acceptance: every guarded-rename story, plan through browser, is tied
to automated tests — renaming is the first thing that mutates the real library."""
assert PHASE_D_STORIES <= set(MAP)
def test_every_mapped_test_file_exists_and_is_nonempty():
for story, files in MAP.items():
assert files, f"{story} maps to no tests"