Skip to main content

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

Related notes

Related courses