Replies: 2 comments 7 replies
-
I think it does not matter if the concurrency is enabled or not, scenario initializer runs for every scenario. This is an interesting idea, in many cases hooks and steps should be same for all scenario and indeed reusing them from suite can be a nice optimization. Let me try a quick prototype. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please try ScenarioInitializer: func(s *godog.ScenarioContext) {
local.RegisterSteps(s)
}, to something like TestSuiteInitializer: func(suiteContext *godog.TestSuiteContext) {
local.RegisterSteps(suiteContext.ScenarioContext())
}, Please share how much time does it take to run tests for both options. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Will this function called repeatedly for every goroutine? I add some dummy logs and it seem yes.
I think this hurting performance too much when you have a lot of step (we have 1000 steps).
Should it be on Suite level instead?
Beta Was this translation helpful? Give feedback.
All reactions