I've got a set of cucumber tests I'm running using ruby/capybara. I have the tests outputting to Browserstack but it only outputs the session ID which isn't of much use to me and want to replace with the test/scenario name.
When I try and set the scenario name using scenario.name and assigning to a variable in the before hook it does this, but only for the first run. Each test then uses the same scenario name.
I've done some investigative work and can see that the browserstack config is only initialized once at the beginning of the entire test suite run. Even if I try and initialize it each time in the before hook it doesn't run for each scenario/test.
Any help is appreciated.