test_a_failure_s_location_is_read_from_its_traceback¶
Tests › tests/test_flowchart.py
What this test is for
Why it exists
F3: the JUnit failure's text names where it failed (`path:line: Error`); kept as `where`.
Given
report = tmp_path / "junit.xml"report.write_text(JUNIT_FAIL)
When
result = parse_junit([report])["test_sums"]
Then
- ✓ result.status equals "failed"
- ✓ result.where contains ("tests/test_add.py", 13)
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_flowchart.py:136 · its file's page
What it checks (1)
assert result.status == "failed" and ("tests/test_add.py", 13) in result.whereobservesparse_junitviaresult
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