Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Setup, Exercise and Verify #1053

@oldoc63

Description

@oldoc63

Test need be separated into setup, exercise and verify phases. This distinct and well-defined separation of steps makes your test more reliable, maintainable and expressive

The phases are defined as follows:

  • Setup: create objects, variables and set conditions that your test depend on
  • Exercise: execute the functionality you are testing
  • Verify: check your expectations against the results of the exercise phase. You can use the assert library here

Clear separation of each phase makes a test easier to read, change and validate.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions