Scenario Lifecycle
Specify uses BDDfy's Reflective API to scan Scenario classes for methods. By default, BDDfy recognises the standard BDD methods, as well as Setup and TearDown. You can read more about them here and you can always customize them if you have your own preferences by creating a new BDDfy MethodNameStepScanner. The method name:
- Ending with
Contextis considered as a setup method (not reported). Setupis considered as a setup method (not reported).- Starting with
Givenis considered as a setup method (reported). - Starting with
AndGivenis considered as a setup method that runs after Context, Setup and Given steps (reported). - Starting with
Whenis considered as a transition method (reported). - Starting with
AndWhenis considered as a transition method that runs after When steps (reported). - Starting with
Thenis considered as an asserting method (reported). - Starting with
Andis considered as an asserting method (reported). - Starting with
TearDownis considered as a finally method which is run after all the other steps (not reported).
Updated 6 months ago
