test_the_wiki_reads_the_same_section¶
Tests › tests/test_tests_section.py
What this test is for
Why it exists
The wiki's evidence inputs come from top-level `tests:`.
Given
root = _write( tmp_path, "tests:\n junit: [build/junit.xml]\n contexts: .coverage\n layers: {unit: ['tests/*']}\n", )
When
config, problems = load_wiki_config(root)
Then
- ✓ problems is false
- ✓ config.junit equals ("build/junit.xml",)
- ✓ config.inputs.contexts equals ".coverage"
- ✓ config.inputs.layers equals (("unit", ("tests/*",)),)
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 · 38 of 400 steps
… 6 steps between
… 343 later steps
tests/test_tests_section.py:38 · its file's page
What it checks (4)
assert not problems, problemsnot attributedassert config.junit == ("build/junit.xml",)not attributedassert config.inputs.contexts == ".coverage"not attributedassert config.inputs.layers == (("unit", ("tests/*",)),)not attributed
Where the product reaches it
build_wiki→load_wiki_config(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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 measured
- REQ-DDB-WIKI-054 inferred