Testing beyond coverage
Document content and editorial review: approved on 2026-11-16 by Codex under the repository user’s delegated review. Approval covers this explanation and its stated evidence limits; semantic, mapping, lifecycle and target states remain independent.
A useful test must exercise the intended condition and distinguish a correct result from an incorrect one. This guide evaluates that work, independently of a coverage percentage, using local proposed concepts in the Evolution and verification family.
Conceptual overview
%%{init: {'theme':'base','fontFamily':'Arial, sans-serif','themeVariables':{'lineColor':'#8792a2','textColor':'#f8fafc','nodeTextColor':'#f8fafc','primaryTextColor':'#f8fafc','arrowheadColor':'#8792a2','dropShadow':'none','useGradient':false,'edgeLabelBackground':'#252b36','fontSize':'16px'}}}%%
flowchart LR
accTitle: G08 test and oracle boundary
accDescr: Controlled inputs and isolated state produce a subject result; compare the declared observation with an independent oracle, including a wrong-result variant. This is a synthetic test design.
A["Controlled time, state and dependency"]:::context -->|evaluate| B["Observed result versus independent oracle"]:::measure
B -->|check| C["Detect deliberately wrong behavior"]:::quality
classDef context fill:#343c4b,color:#f8fafc,stroke:#8792a2,stroke-width:2px
classDef measure fill:#503824,color:#f8fafc,stroke:#8792a2,stroke-width:2px
classDef quality fill:#24452a,color:#f8fafc,stroke:#8792a2,stroke-width:2pxText equivalent: controlled conditions and isolated test state frame the exercise; compare the observed result with an independent oracle. Detecting a wrong result is separate from executing code. Arrows represent evaluation, not membership. Provenance: the synthetic G08 design.
G08 scenario
This is a synthetic deadline-rule exercise at revision A; no actual defect injection or benchmark was executed. All criteria and observations are illustrative and unapproved.
| QAS field | Exercise condition |
|---|---|
| Stimulus source | A developer or test engineer adding a regression test for a reported deadline-boundary error. |
| Stimulus | Construct and diagnose tests for a time-sensitive rule and a failing dependency. |
| Artifact | Hypothetical rule evaluator with explicit time input, dependency contract and result boundary. |
| Environment | Development; frozen versions/fixtures and seed 17, clean namespace and fake clock per repetition; no real network or production data. |
| Response | Control inputs/state, execute the relevant condition, observe effects and compare against an independent expected result; diagnose failure. |
| Response measure | At most three total engineer-hours to construct and diagnose; ten of ten fixed-seed repetitions satisfy the oracle; a seeded wrong-result variant is detected; no neighbor-state leakage. |
The independent rule sheet states that the deadline instant itself is accepted, later instants rejected, and dependency failure produces a declared error without a stored success. Use before/equal/after instants and the dependency-failure case in each repetition. Ten repetitions cover 40 case executions; the denominator is fixed even when one execution fails. Assert expected values from the rule sheet rather than repeat the evaluator’s comparison in the test. Reset data and time before every repetition; run an interfering neighbor that attempts to reuse a different namespace, and verify that both results remain separate.
Construction effort includes fixture/instrumentation setup, implementation, assertion review and repairs. Diagnosis effort includes triage, evidence interpretation and retest. Sum all contributors’ time, distinguish wall-clock wait, and report failures rather than excluding them. A three-hour limit and ten repeats are teaching criteria, not a TDP commitment or statistical confidence claim.
G08 results and decisions
| Synthetic run | Evidence | Decision |
|---|---|---|
| A | 2.0 construction + 0.5 diagnosis = 2.5 engineer-hours; 40/40 case executions satisfy the oracle; wrong-result variant fails the equality case; no cross-namespace effect | Meets the illustrative effort, repeatability, discrimination and isolation conditions. |
| B | 1.5 engineer-hours; 40/40 executions finish and instrumented statements report 100% coverage, but the assertion only checks that a result exists; the wrong-result variant passes | Fails the independent-oracle condition. Executed code does not demonstrate correct judgment. |
Example: a test must be able to disagree. At the deadline instant, the rule sheet requires acceptance. A variant returning rejection must make the test fail. Checking only that the response is present accepts both answers, even if every line ran. A seeded fault checks this particular discrimination; it does not prove detection of every possible fault.
Coverage and oracles
Unit-test statement coverage is executed eligible statements divided by all eligible statements under the chosen tool/version and exclusion rules. Branch coverage uses declared branch outcomes instead. For illustration, 80/100 eligible statements is 80%; omitting ten unexecuted statements from instrumentation changes the denominator and cannot be compared silently. Define generated-code treatment, failures, merged runs and source revision. A percentage supplies no independent expected result.
Integration coverage needs a declared population: for example, eight exercised required contract interactions out of ten inventoried interactions is 80%. That is interaction coverage, not automatically a source-code coverage percentage; report both separately if measured. Define versions, failure paths, retries, authorization, data boundaries and which interactions remain untested. Unit isolation can hide serialization, timing and persistence failures; integration tests need the corresponding real boundaries. Neither 100% statement coverage nor 100% of a chosen interaction inventory establishes complete requirements coverage or production quality.
Techniques and trade-offs
| Question / candidate | Benefit and prerequisites | Cost, limitation and interaction | Verification and rejection |
|---|---|---|---|
| Testability: explicit conditions and oracle | Makes the test’s purpose falsifiable; requires an independent rule and observable boundary. | Test construction and fixture maintenance cost effort; an incorrect oracle misleads. | Include complete setup/diagnosis effort and a wrong-result variant; reject a test unable to disagree. |
| Controllability: explicit time/state/dependency input | Selects deadline/failure conditions without waiting for chance. | Injection/contracts add maintenance; unrealistic fakes can hide real behavior. | Run all declared boundary cases, then verify contract fidelity separately. |
| Observability (testing): expose the intended result | Distinguishes missing, wrong and correct effects at the chosen boundary. | Extra instrumentation can alter behavior or expose secrets; status alone can miss persistence. | Compare the actual required effect to the independent oracle; reject a wrong effect with a success status. |
| Isolation (testing): fresh namespaces and reset state | Reduces cross-test interference and order dependence. | Resetting and cleanup cost time; isolation can hide necessary integrations. | Vary test order, add a neighbor and check for leakage; retain real contract integration tests. |
| Debuggability: safe input/cause evidence | Can reduce effort to distinguish clock, dependency and assertion faults. | Instrumentation and analysis cost time; detailed logs can leak private information. | Use synthetic identifiers, access-limited traces and known alternative causes; measure diagnosis, not just detection. |
| Unit/integration coverage reports | Identify unexercised statements or declared interactions. | Instrumentation costs resources; high percentages can encourage weak assertions. | Preserve denominators/exclusions and inspect missing cases; never accept solely on a percentage. |
For each comparison hold artifact, task, seed, cases and correctness rules fixed; change one technique and account for setup plus ongoing maintenance. Match reviewer experience and randomize/counterbalance task order before claiming effort improvements. This guide proposes a method; it runs no real tests of the hypothetical system. Test hooks must be access-controlled in any future implementation; they confer no authorization to expose production state.
Aliases and source limits
The ISO/IEC 25010:2023 catalogue, consulted 2026-11-16, confirms Published edition 2 (2023-11) and a nine-characteristic product model. It does not verify exact definitions, subcharacteristic parentage or equivalence to these local readings. The withdrawn 2011 edition and the 2023 edition remain distinct source contexts. Preserve possible Maintainability, Testability, Modifiability, Reusability, Adaptability and Replaceability classifications as proposals pending primary full-text verification, rather than infer a taxonomy from this navigation.
arc42 Q42, consulted 2026-11-16, supplies overlapping reading tags. Its maintainable tag mentions analyzable, modifiable, testable and debuggable; flexible also addresses runtime configuration. Its attribution of structuredness, conciseness and legibility to older models is secondary. No original Boehm definition is asserted here. Q42’s tags do not define ISO membership or confirm a local synonym.
The historical six-field method is attributed to Bachmann, Bass and Klein, SEI CMU/SEI-2003-TR-004, section 2.1, as recorded in the existing source register. The attempted current SEI HTML address returned no substantive report body; neither report content nor a PDF was newly inspected. The SEI report is a primary lead, not a newly verified definition. This guide uses the existing local six-field template and labels all exercise design as an author proposal. No Tdp.Backend repository or runtime was examined.
Testable maps provisionally to Testability; Debuggable/debuggability to Debuggability. The unqualified observability label maps only to the testing scope here; operational telemetry remains a separate question. Isolation names a scoped property in this model, while resetting state or replacing dependencies are tactics. No equivalence is confirmed by these labels.
Applying the decision
Use the prioritization method to select a valuable change journey and its technical risk before agreeing targets. Record expected benefit, uncertainty, evidence cost and the owner’s decision separately. No priority, budget, deadline, applicability or target is approved by this example. A new candidate needs a source, disposition and owner before inclusion; unresolved equivalence can remain visibly pending without inventing a definition.
Audience paths
The executive discussion connects test effort to delivery risk; the technical discussion preserves oracle and coverage boundaries.