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.
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:
Clear separation of each phase makes a test easier to read, change and validate.