Cucumber-Appium - Where to store Hooks if initialising driver in @Before
问题 I'll try to explain how I've built this, I imagine something obvious may jump out. I'm relatively new to this but am building a cucumber-appium framework and am running into some trouble. Currently, I initialise my Appium driver in my @Before hook which is in a GlobalHooks class which contains all Hooks. I have altered the hook so part of it only runs at the start of the test run as Cucumber doesn't support global hooks and I don't see why I should initialise the driver before every test (I'm