cucumber-jvm icon indicating copy to clipboard operation
cucumber-jvm copied to clipboard

Ability to name the hooks in Java

Open andytangclearme opened this issue 1 year ago • 1 comments

🤔 What's the problem you're trying to solve?

Previous closed issue: https://github.com/cucumber/messages/issues/73

The issue is four years old and closed, but the java hook annotations still does not accept name as a property.

✨ What's your proposed solution?

Update the hook annotations (@Before, @After, etc.) to have name property:

@Before(name = "Take out the rubbish")
public void doSomething(){
    // Do something before each scenario
}

⛏ Have you considered any alternatives or workarounds?

No response

📚 Any additional context?

Intellij JUnit5 output:

image

andytangclearme avatar Aug 24 '24 20:08 andytangclearme