test_the_composite_action_builds_the_wiki_at_this_release¶
Tests › tests/test_hosting.py
What this test is for
Why it exists
Composite; clew at this release with the wiki extra; HTML or Markdown; the site out.
Verifies REQ-DDB-WIKI-039
Given
action = yaml.safe_load((REPO / ".github" / "actions" / "wiki" / "action.yml").read_text())inputs = action["inputs"]runs = "\n".join(str(s.get("run", "")) for s in action["runs"]["steps"])
When
- —
Then
- ✓ action["runs"]["using"] equals "composite"
- ✓ inputs["version"]["default"] equals _version()
- ✓ {"format", "flavor", "out", "config", "audience"} is at most set(inputs)
- ✓ runs contains "clew-trace[wiki]==${{ inputs.version }}"
- ✓ runs contains "clew wiki build"
- ✓ runs contains "--format"
- ✓ action["outputs"] contains "site"
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 · 1 of 400 steps
… 96 earlier steps
… 299 later steps
1 more
- `main` (clew/guard/main.py) · 1 of 357 steps
tests/test_hosting.py:68 · its file's page
What it checks (6)
assert action["runs"]["using"] == "composite"not attributedassert inputs["version"]["default"] == _version()observes_versionassert {"format", "flavor", "out", "config", "audience"} <= set(inputs)not attributedassert "clew-trace[wiki]==${{ inputs.version }}" in runsnot attributedassert "clew wiki build" in runs and "--format" in runsnot attributedassert "site" in action["outputs"]not attributed
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
test_the_composite_action_builds_the_wiki_at_this_release→_versionWhat 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-039 | catalog | unknown |