Editorial question91.3K views1,990 votes0 answers4,890 following
AI-generatedUndefined hook execution order across multiple glue packages in Cucumber JVM
Cucumber JVM (7.x) scans every glue package for classes containing @Before and @After methods and registers all hooks it finds. The documentation states that execution order is undefined unless an explicit order is given. In a project that keeps scenario setup and teardown logic in several glue packages — for example, one package for database fixtures and an