test_junit_variants_name_the_function_and_classify_honestly¶
Tests › tests/test_wiki_test_imports.py
What this test is for
Given
report = tmp_path / "junit.xml"report.write_text( "<testsuites><testsuite>" '<testcase name="adds(int, int)[1]"/>' '<testcase name="adds(int, int)[2]"/>' '<testcase name="off" status="disabled"/>' '<testcase name="flaky"><flakyFailure message="once"/></testcase>' '<testcase name="gone" status="skipped"/>' "</testsuite></testsuites>" )
When
found = parse_junit([report])
Then
- ✓ {n: r.status for n, r in found.items()} equals { "adds": "passed", "off": "skipped", "flaky": "passed", "gone": "skipped", }
- ✓ found["adds"].cases equals 2
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_test_imports.py:57 · its file's page
What it checks (2)
assert {n: r.status for n, r in found.items()} == { "adds": "passed", "off": "skipped", "flaky": "passed", "gone": "skipped", }observesparse_junitviafoundassert found["adds"].cases == 2observesparse_junitviafound
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-030 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-002 measured
- REQ-DDB-WIKI-010 measured