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
Teardown - CI/CD Glossary DefinitionTeardown: Teardown is the cleanup phase that runs after a test to release resources and reset state, such as…
Test Fixture - CI/CD Glossary DefinitionTest Fixture: A test fixture is the fixed baseline state and data a test needs to run reliably, such as a see…
Arrange, Act, Assert - CI/CD Glossary DefinitionArrange, Act, Assert: Arrange, Act, Assert (AAA) is a pattern for structuring a test into three clear phases:…