test_why_is_the_docstring_and_the_declared_requirements¶
Tests › tests/test_wiki_testcard.py
What this test is for
Why it exists
The docstring's first paragraph and only the declared (tag/catalog) requirements.
Given
html = _card()why = html.split('class="tc-why"', 1)[1].split("</div>", 1)[0]
When
- —
Then
- ✓ why contains "An imported trace is drawn over its flow."
- ✓ why does not contain "@brief"
- ✓ why contains "REQ-W-001"
- ✓ why does not contain "REQ-X-002"
tests/test_wiki_testcard.py:50 · its file's page
What it checks (2)
assert "An imported trace is drawn over its flow." in why and "@brief" not in whynot attributedassert "REQ-W-001" in why and "REQ-X-002" not in whynot 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_why_is_the_docstring_and_the_declared_requirements→_cardWhat 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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-026 measured