codeceptjs / CodeceptJS

Supercharged End 2 End Testing Framework for NodeJS
http://codecept.io
MIT License
4.1k stars 721 forks source link

Hooks and global variables and order of Before and Background #3218

Open SroubekH opened 2 years ago

SroubekH commented 2 years ago

Hello, we are using cucumber to define tests, and I have noticed I can't save into this in before/after hooks. Am I missing something, or is just not possible? Or is there a way for step definition to access test support Object? I also noticed that background is triggered before before hooks and I don't think it's correct behavior, since background should work as a beginning of the test, then Before should be triggered first.

Details: nodeJs version: v14.15.0 CodeceptJs version: 3.2.3

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 90 days with no activity.