R27 Build fixtures from made-up data only

Off by default

Build every fixture from made-up data only, with no effect outside the test environment.

Reason

A fixture is kept in the repository and run again and again, by anyone and in CI: a real credential or real personal information in it leaks with it (Art. II §1, Art. II §4), and an effect outside the test environment repeats on every run and can reach people or systems outside the work at hand (Art. V §1(3)).

Verification

Made-up data means no real credentials, private information or real people’s data. No effect outside the test environment means no real network services or accounts, and no messages to people.

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

Violated when a fixture uses real data or has an effect outside the test environment.

Provisions of the constitution it cites

Relations

Parent
R277 Testing
Requires
none
Conflicts with
none

Metadata

ID
27
Revision
5
Kind
rule
Status
trial
Slug
fixtures-made-up-data
Default level
project
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh