i have gone through many help, but all are about explaining on scenario level. Is there any Before and After hook at feature level for cucumber JVM.? This page cucumber Hook tells about ruby language, but can i get help for java?
Asked
Active
Viewed 1.2k times
5
-
it's a good question. I don't understand why the downvotes, but anyway. It's not currently possible, or anytime soon from what I can tell. See https://github.com/cucumber/cucumber-jvm/issues/1321 – Stefanos Kalantzis Jun 04 '18 at 08:27
2 Answers
0
The following contains many of the avialable hooks: http://zsoltfabok.com/blog/2012/09/cucumber-jvm-hooks/
Similar to junit it appears there is an annotationo for @Before and @After

Paul Harris
- 5,769
- 1
- 25
- 41
0
Cucumber does not support hooks on feature levels like specflow having @BeforeFeature and @AfterFeature tags. This is open issue https://github.com/cucumber/cucumber-jvm/issues/515

RKM
- 27
- 5