Skip to content

Ability to name the hooks in Java #2917

Open
@andytangclearme

Description

@andytangclearme

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

Previous closed issue: cucumber/messages#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions