test_parametrized_cases_fold_and_statuses_are_distinct¶
Tests › tests/test_wiki_evidence.py
What this test is for
Why it exists
test_ok[one]/[two] fold to test_ok; failed and skipped are kept apart.
Given
report = tmp_path / "junit.xml"report.write_text(_JUNIT)
When
results = parse_junit([report])
Then
- ✓ results["test_ok"].status equals "passed"
- ✓ results["test_ok"].cases equals 2
- ✓ results["test_bad"].status equals "failed"
- ✓ results["test_flash"].status equals "skipped"
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 7 of 400 steps
… 344 earlier steps
… 45 later steps
tests/test_wiki_evidence.py:51 · its file's page
What it checks (3)
assert results["test_ok"].status == "passed" and results["test_ok"].cases == 2observesparse_junitviaresultsassert results["test_bad"].status == "failed"observesparse_junitviaresultsassert results["test_flash"].status == "skipped"observesparse_junitviaresults
Where the product reaches it
build_wiki→_build_site→parse_junit(flow)
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-002 measured
- REQ-DDB-WIKI-010 measured