test_a_googletest_notrun_case_is_a_skip

Tests › tests/test_wiki_frameworks.py

passed Passed in the packaged run.

What this test is for

Why it exists

GoogleTest writes a DISABLED test as `status="notrun"` with no child element; read as passed, it would turn an unexecuted test into evidence.

Verifies REQ-DDB-WIKI-017

Given

  1. report = tmp_path / "gtest.xml"
  2. report.write_text( '<testsuites><testsuite name="Store"><testcase name="Loads" status="run" result="completed"/>' '<testcase name="DISABLED_Flash" status="notrun" result="suppressed"/>' '<testcase name="Saves" status="run" result="skipped"><skipped/></testcase></testsuite></testsuites>' )
→

When

  1. results = parse_junit([report])
→

Then

  1. ✓ results["Loads"].status equals "passed"
  2. ✓ results["DISABLED_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_frameworks.py:91 · its file's page

What it checks (1)

  1. assert results["Loads"].status == "passed" and results["DISABLED_Flash"].status == "skipped" observes parse_junit via results

Where the product reaches it

  • build_wiki → _build_site → parse_junit (flow)

Call flow

test_a_googletest_notrun_case_is_a_skip→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_googletest_notrun_case_is_a_skip · 1 checksparse_junitREQ-DDB-WIKI-002 · measuredparse_junitfold_casesREQ-DDB-WIKI-010 · measured

Requirements it verifies (1)

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

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