-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
🥒 core teamCandidate for going onto the Cucumber Open Board: https://github.com/orgs/cucumber/projects/8Candidate for going onto the Cucumber Open Board: https://github.com/orgs/cucumber/projects/8🧷 pinnedTells Stalebot not to close this issueTells Stalebot not to close this issue
Milestone
Description
People keep asking for BeforeAll
and AfterAll
hooks. I haven't had a big need for them myself, but it seems to me this would be sufficient:
public class GlobalHooks {
private static boolean dunit = false;
@Before
public void beforeAll() {
if(!dunit) {
Runtime.getRuntime().addShutdownHook(afterAllThread);
// do the beforeAll stuff...
dunit = true;
}
}
}
If this doesn't cut it for you, please explain in this ticket, and maybe we'll add special support for it.
jwgmeligmeyling, javapapo, MattFriedman, GoreA, bademux and 110 morehemanth-dunzo, hemanthsridhar, eduardmanda, bjornblomqvist, Saurabh-Silori and 2 moresharavan86, prakashvivek89, vikramvi, rtretyak, g-combs and 1 moreadrian-baker, prisoares, willyinvenco, Ant-VAV, rtretyak and 5 morecolladovictorRayEltaib
Metadata
Metadata
Assignees
Labels
🥒 core teamCandidate for going onto the Cucumber Open Board: https://github.com/orgs/cucumber/projects/8Candidate for going onto the Cucumber Open Board: https://github.com/orgs/cucumber/projects/8🧷 pinnedTells Stalebot not to close this issueTells Stalebot not to close this issue
Type
Projects
Status
Implemented