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

ParameterType annotation seems not to be available in cucumber-java8 #560

Open
corzani opened this issue Dec 10, 2020 · 0 comments
Open
Labels
📖 documentation Improvements or additions to documentation

Comments

@corzani
Copy link

corzani commented Dec 10, 2020

I am using Kotlin with the cucumber-java8 (6.9.0) dependency.
Regarding the page "https://cucumber.io/docs/cucumber/cucumber-expressions/", it seems the annotation ParameterType (used in the "color" example) isn't available there.
I had to use the DSL and change it to something like:

class TestRules : En {
    init {
         ParameterType("color", "red|blue|yellow") { color -> ... }
    }
}

This approach in Kotlin isn't very clear (from the documentation) and wasn't working for me, should the documentation contain even the java8 approach?

@aslakhellesoy aslakhellesoy added the 📖 documentation Improvements or additions to documentation label Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants