No feature information in hooks
See original GitHub issueIn classic cucumber runner, I can access current Feature object via Scenario instance in a @before hook.
With courgette the Scenario.reporter
field is null
I want to get current feature name and its lang iso code at runtime. Is it possible to implement?
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (10 by maintainers)
Top Results From Across the Web
Rules of Hooks - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.
Read more >What are Cucumber Hooks And How to Use ... - Tools QA
Cucumber supports hooks, which are blocks of code that run before or after each scenario. You can define them anywhere in your project...
Read more >Cucumber Hooks - Baeldung
Hooks are not visible in the Gherkin code. Therefore, we should not see them as a replacement for a Cucumber Background or a...
Read more >Obtain Cucumber 3 scenario properties in hooks.rb ... - GitHub
Describe the bug In version 3 it is possible to obtain the name of the current feature from Before and After hooks.
Read more >React Hooks cheat sheet: Best practices with examples
Editor's note: This React Hooks tutorial was last updated in January 2021 to include more React Hooks best practices and examples.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
great! Thank you! Better approach to access feature is like in: https://github.com/sbtqa/qa-utils/blob/master/src/main/java/ru/sbtqa/tag/qautils/cucumber/CucumberUtils.java
Hi @clicman
I’ve upgraded Courgette-JVM to 2.0.0.
This now uses Cucumber-JVM 2.4.0 and Gherkin 5. With this, the scenario object is updated.
So you can get the feature info using Gherkin including the language