test setup state
Test fixture
Test Fixture
Also known as · Fixture · test setup data · repeatable test state
Definition
A small bundle of input, state, and doubles prepared so one test can be reproduced under the same conditions. It differs from an evaluation dataset that represents an operational distribution.
Searchable examples
- seeded PostgreSQL row
- temporary upload file
Short example
arrange: user + published note
act: search("API")
assert: term result is separated from note result
Compare with
- API contractAPI Contractboundary agreementAn agreement that makes a provider and its consumers interpret inputs, outputs, authorization, errors, and state in the same way. It owns the observable boundary rather than a screen or implementation shape.
- Single Source of Truthdesign principleA principle that gives one authoritative source the meaning and write authority for a fact while treating other representations as derived state. It clarifies ownership and synchronization boundaries; it does not mean copies never exist.