Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the SourceReference in ParameterType #145

Closed
jkronegg opened this issue Apr 3, 2023 · 1 comment · Fixed by #149
Closed

Add the SourceReference in ParameterType #145

jkronegg opened this issue Apr 3, 2023 · 1 comment · Fixed by #149

Comments

@jkronegg
Copy link
Contributor

jkronegg commented Apr 3, 2023

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

When implementing a Java plugin, I can determine the source reference of a Step Definition (using handler on Envelope.stepDefinition), but I cannot determine the source reference for a ParameterType.

✨ What's your proposed solution?

Add a SourceReference in the io.cucumber.messages.types.ParameterType.

⛏ Have you considered any alternatives or workarounds?

The ParameterType can be obtained outside Cucumber by looking at all methods annotated @ParameterType on all classes of the classpath, but this is not really efficient.

📚 Any additional context?

Feature request to implement this new API change:

@mpkorstanje
Copy link
Contributor

@jkronegg if you hadn't found it already, the CONTRIBUTING.md describes how to add to the messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants