test_junit_variants_name_the_function_and_classify_honestly

Tests › tests/test_wiki_test_imports.py

passed Passed in the packaged run.

What this test is for

Why it exists

JUnit 5 names, disabled cases, reruns that passed.

Verifies REQ-DDB-WIKI-030

Given

  1. report = tmp_path / "junit.xml"
  2. 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

  1. found = parse_junit([report])
→

Then

  1. ✓ {n: r.status for n, r in found.items()} equals { "adds": "passed", "off": "skipped", "flaky": "passed", "gone": "skipped", }
  2. ✓ 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

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyother filesother filesother filesother filesbuild_wiki345. slice_svg → _hidden345_hidden346. _build_site → parse_junit346parse_junit347. parse_junit → fold_cases347fold_cases▶ test enters348. fold_cases → _folded348_folded349–353. parse_junit → _case_name349_case_name +4 more354. _build_site → _lines_by_test354_lines_by_test355. _lines_by_test → lines_per_test355lines_per_test

… 45 later steps

tests/test_wiki_test_imports.py:57 · its file's page

What it checks (2)

  1. assert {n: r.status for n, r in found.items()} == { "adds": "passed", "off": "skipped", "flaky": "passed", "gone": "skipped", } observes parse_junit via found
  2. assert found["adds"].cases == 2 observes parse_junit via found

Where the product reaches it

  • build_wiki → _build_site → parse_junit (flow)

Call flow

test_junit_variants_name_the_function_and_classify_honestly→parse_junit

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.

test_junit_variants_name_the_function_and_classify_honestly · 2 checksparse_junitREQ-DDB-WIKI-002 · measuredparse_junitfold_casesREQ-DDB-WIKI-010 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-030catalogunknown
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.