Cucumber JVM parallel execution: hook thread-affinity guarantee for scenario-scoped @Before/@After
Thread-affinity uncertainty for scenario hooks When running Cucumber JVM scenarios in parallel via JUnit 5's parallel execution or Cucumber's --threads option, reliable management of thread-local resources such as WebDriver instances or database connections depends on whether @Before and @After hooks execute on the same thread as their associated scenario. T