'Any cucumber Before and After hook at a feature level
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?
Solution 1:[1]
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
Solution 2:[2]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Paul Harris |
| Solution 2 | RKM |
