The ruby version of the cucumber supports the global hook-up. The * .rb file located in the function / support directory appears to be called only once before running any and all scripts. See https://github.com/cucumber/cucumber/wiki/Hooks#global-hooks
This seems to be a great way to make sure the database (read-only during the tests) is populated (and therefore in a known state) before running any tests.
Is there a similar feature for the Java cucumber version?
, . @BeforeAll @AfterAll
https://github.com/cucumber/cucumber-jvm/issues/515
, Cucumber-JVM. , () , @Before . .
Any method annotated with a tag @Beforeruns before each script. Any method annotated with a tag @Afterruns after each script.
@Before
@After