test_a_googletest_notrun_case_is_a_skip¶
Tests › tests/test_wiki_frameworks.py
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
report = tmp_path / "gtest.xml"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
results = parse_junit([report])
Then
- ✓ results["Loads"].status equals "passed"
- ✓ 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
… 45 later steps
tests/test_wiki_frameworks.py:91 · its file's page
What it checks (1)
assert results["Loads"].status == "passed" and results["DISABLED_Flash"].status == "skipped"observesparse_junitviaresults
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-017 | 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