test_the_composite_action_builds_the_wiki_at_this_release

Tests › tests/test_hosting.py

passed Passed in the packaged run.

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

  1. action = yaml.safe_load((REPO / ".github" / "actions" / "wiki" / "action.yml").read_text())
  2. inputs = action["inputs"]
  3. runs = "\n".join(str(s.get("run", "")) for s in action["runs"]["steps"])
→

When

  1. —
→

Then

  1. ✓ action["runs"]["using"] equals "composite"
  2. ✓ inputs["version"]["default"] equals _version()
  3. ✓ {"format", "flavor", "out", "config", "audience"} is at most set(inputs)
  4. ✓ runs contains "clew-trace[wiki]==${{ inputs.version }}"
  5. ✓ runs contains "clew wiki build"
  6. ✓ runs contains "--format"
  7. ✓ 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

callercallercallercallerother filesother filesother filesother filesloop (line 223)looploop (line 224)looploop (line 74)looploop (line 78)loopbuild_wiki97–98. console_scripts → _read_toml97_read_toml +1 more99. require_toml_module → toml_module99toml_module▶ test enters100. console_scripts → _nested100_nested101. _scripts → _defined101_defined

… 299 later steps

1 more

tests/test_hosting.py:68 · its file's page

What it checks (6)

  1. assert action["runs"]["using"] == "composite" not attributed
  2. assert inputs["version"]["default"] == _version() observes _version
  3. assert {"format", "flavor", "out", "config", "audience"} <= set(inputs) not attributed
  4. assert "clew-trace[wiki]==${{ inputs.version }}" in runs not attributed
  5. assert "clew wiki build" in runs and "--format" in runs not attributed
  6. assert "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→_version

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)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-039catalogunknown