Skip to content
Latchkey

Setup - CI/CD Glossary Definition

Setup runs before each test to build the fixtures and state the test depends on.

Setup is the phase that runs before a test to prepare the state it needs, such as creating objects, seeding data, or starting a service. It establishes a known starting point.

Setup pairs with teardown to bracket each test with fresh state. Per-test setup favors isolation; shared setup favors speed but risks coupling.

Framework support

Hooks like beforeEach, setUp, and pytest fixtures run setup automatically before each test or suite.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →