cucumber / cucumber-jvm

Cucumber for the JVM
https://cucumber.io
MIT License
2.69k stars 2.02k forks source link

[Core] Add hook method name to TeamCityPlugin #2881

Closed maestro-game closed 1 month ago

maestro-game commented 1 month ago

Hi, this closes #2798. changes:

🤔 What's changed?

The TeamCityPlugin for IntelliJ IDEA now uses the hook's method name for the name of the hook itself. For example, if we have a hook with the method name com.example.HookDefinition.beforeHook(), the generated name will be Before(beforeHook). If we have a hook with the method name com.example.HookDefinition.<init>(HookDefinition.java:12), the generated name will be Before(HookDefinition). If the hook's method can't be identified then fallback to simple hook name.

🏷️ What kind of change is this?

📋 Checklist: