test_parametrized_cases_fold_and_statuses_are_distinct

Tests › tests/test_wiki_evidence.py

passed Passed in the packaged run.

What this test is for

Why it exists

test_ok[one]/[two] fold to test_ok; failed and skipped are kept apart.

Given

  1. report = tmp_path / "junit.xml"
  2. report.write_text(_JUNIT)
→

When

  1. results = parse_junit([report])
→

Then

  1. ✓ results["test_ok"].status equals "passed"
  2. ✓ results["test_ok"].cases equals 2
  3. ✓ results["test_bad"].status equals "failed"
  4. ✓ 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

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_evidence.py:51 · its file's page

What it checks (3)

  1. assert results["test_ok"].status == "passed" and results["test_ok"].cases == 2 observes parse_junit via results
  2. assert results["test_bad"].status == "failed" observes parse_junit via results
  3. assert results["test_flash"].status == "skipped" observes parse_junit via results

Where the product reaches it

  • build_wiki → _build_site → parse_junit (flow)

Call flow

test_parametrized_cases_fold_and_statuses_are_distinct→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_parametrized_cases_fold_and_statuses_are_distinct · 3 checksparse_junitREQ-DDB-WIKI-002 · measuredparse_junitfold_casesREQ-DDB-WIKI-010 · measured
Also reaches 2 requirements

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