Reputation: 539
We always need to store cucumber scenario hooks on same package where the glue code stored but I want to store it in main framework code so is it possible in cucumber to keep aside scenario hooks from glue code package for better project structure.
Upvotes: 0
Views: 826
Reputation: 9058
You can place the hook codes anywhere you want, as long as you include the package containing the hook classes in the glue option of the runner class. Add all the relevant packages by delimiting with a comma.
Upvotes: 2