test_the_summary_counts_requirements_tests_and_coverage

Tests › tests/test_wiki_cisummary.py

passed Passed in the packaged run.

What this test is for

Why it exists

Each tier counted, tests by result, Cobertura's line and branch rates.

Given

  1. cobertura = tmp_path / "coverage.xml"
  2. cobertura.write_text('<coverage line-rate="0.8421" branch-rate="0.61"><packages/></coverage>')
→

When

  1. text = ci_summary( "Lib", [_ev("R1", "PASS"), _ev("R2", "PASS"), _ev("R3", "GAP"), _ev("R4", "MISSING", ())], { "t1": CaseResult("t1", "passed", 1), "t2": CaseResult("t2", "failed", 1), "t3": CaseResult("t3", "skipped", 1), }, cobertura, )
→

Then

  1. ✓ text.startswith("## Lib — clew evidence") holds
  2. ✓ text contains "**4** requirements · 3 implemented"
  3. ✓ text contains "| PASS | 2 |"
  4. ✓ text contains "| GAP | 1 |"
  5. ✓ text contains "| MISSING | 1 |"
  6. ✓ text contains "**3** tests: 1 passed, 1 failed, 1 skipped"
  7. ✓ text contains "line 84.2% · branch 61.0%"

tests/test_wiki_cisummary.py:23 · its file's page

What it checks (5)

  1. assert text.startswith("## Lib — clew evidence") observes ci_summary via text
  2. assert "**4** requirements · 3 implemented" in text observes ci_summary via text
  3. assert "| PASS | 2 |" in text and "| GAP | 1 |" in text and "| MISSING | 1 |" in text observes ci_summary via text
  4. assert "**3** tests: 1 passed, 1 failed, 1 skipped" in text observes ci_summary via text
  5. assert "line 84.2% · branch 61.0%" in text observes ci_summary via text

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_summary_counts_requirements_tests_and_coverage→ci_summary→_ev

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_the_summary_counts_requirements_tests_and_coverage · 5 checksci_summaryREQ-DDB-WIKI-002 · measured
Also reaches 1 requirement

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