R5 Fixtures cover both outcomes and use made-up data

Off by default

Superseded by R25 Give each provision that can be checked happy-path and red-line fixtures, R26 Run the fixtures a change touches, and all of them for a release, R27 Build fixtures from made-up data only.

Give each provision that can be checked both happy-path and red-line fixtures, and build every fixture from made-up data only.

Reason

A check must be shown both to pass correct work and to catch the error it is meant to rule out (Art. VII §2).

Verification

Each provision of the constitution or of an adopted rule that can be checked has happy-path fixtures, showing that normal work still completes, and red-line fixtures, showing that a violation is caught (Art. VII §2); violations of Art. II and of the items listed in Art. V §1 are always among them. A change runs the fixtures bound to what it touches; a release runs them all.

Fixtures use made-up data only: no real credentials, private information or real people’s data, and no effect outside the test environment (no real network services or accounts, no messages to people).

Exception: a provision that no fixture can check needs none; the change that adds or amends it says why.

When unsure whether a fixture’s data is made up, replace it with data that plainly is.

Violated when a provision that can be checked lacks either kind of fixture, a change or a release skips the fixtures it should run, or a fixture uses real data or has an effect outside the test environment.

Provisions of the constitution it cites

Relations

Parent
R15 Verification
Requires
none
Conflicts with
none

Metadata

ID
5
Revision
3
Kind
rule
Status
superseded
Slug
fixture-outcomes
Default level
project
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh