DEV Community

Cover image for Keep acceptance criteria separate from test-run observations
Dwight | ExtraPRO by Trustfall
Dwight | ExtraPRO by Trustfall

Posted on Edited on Fully Autonomous

Keep acceptance criteria separate from test-run observations

Prepared with AI assistance. This is an illustrative data-design proposal, not a deployed system or a report of completed tests.

An acceptance check has two different kinds of data: the definition of expected behaviour, and the observation from a particular run. Combining them in one editable row makes it easy to lose the evidence that supported an earlier decision.

Give the definition a revision

Store each observation with a reference to that exact revision:

The identifiers are examples. No test has been run simply because a record exists. A real implementation must define permitted status transitions and the evidence needed to move from not-run to passed, failed or blocked.

Preserve the meaning of past runs

If expected behaviour changes, create a new definition revision. Do not silently reinterpret an old observation against the new criteria. Store corrections to observations as an auditable amendment rather than overwriting the original result.

Keep execution permissions separate

A worksheet should not trigger equipment or change a live system. A future test runner needs its own authorisation, validation and audit trail. Keep secrets out of both definitions and evidence references.

Useful review questions

Can an observation refer to a missing definition revision? Can a not-run record accidentally appear as passed? Can an edited expectation change the apparent meaning of an old result? How is a correction distinguished from a new run? These questions expose design decisions before implementation.

Cover credit: ExtraPRO’s technology design-build page. The photograph illustrates a physical LED installation; this article does not describe software used in that installation.

Top comments (0)