test_a_failure_s_location_is_read_from_its_traceback

Tests › tests/test_flowchart.py

passed Passed in the packaged run.

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

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

When

  1. result = parse_junit([report])["test_sums"]
→

Then

  1. ✓ result.status equals "failed"
  2. ✓ 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

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

What it checks (1)

  1. assert result.status == "failed" and ("tests/test_add.py", 13) in result.where observes parse_junit via result

Where the product reaches it

  • build_wiki → _build_site → parse_junit (flow)

Call flow

test_a_failure_s_location_is_read_from_its_traceback→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_a_failure_s_location_is_read_from_its_traceback · 1 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.