-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Core] Implement cucumber expressions #1248
Conversation
Some tests are disabled, some code commented out, but more scenarios in the java-calculator example passes.
Update:
This works for valid values (e.g. Note: Generated snippets contain
Some examples here: mlvandijk/cucumber-expression-test@1d58b06 |
I've had to look up how those worked again and the rules downright rather complicated because java treats them as 2s-complement numbers. As a normal person I generally expect So as this is all a bit annoying. So lets byte the bullet and drop it. The people who want to use it can sink their teeth in it. |
I pushed cucumber/common@ecab2ab where I considered adding a |
Hallelujah! |
Got the infra structure set up for that. A full blown explanation depending on the existence of the configuration adds too much complexity. As does combining all the messages in a completely sensible way. People can read a stack trace. Just need to add a link to the documentation. |
Step expression should be completely hidden from the user. They'll only ever see the The purpose of the package is to abstract the cucumber expressions and data table types and all the transformations involved from the java and java8 step definitions and the step definition match. This means:
This used to be done in It also required |
I've automated it a while ago. Break the api, break the build. https://github.com/cucumber/cucumber-jvm/blob/master/pom.xml#L866 edit: Ofcourse it doesn't catch protocol level changes such as the formatter event streams. edit; And if you're looking to test revapi. Set the version back to 2.x. Breaks are allowed on majors. |
Blog post drafted: https://github.com/cucumber/website/pull/290 |
@aslakhellesoy StepdefGenerator doesn't appear to be used by IDEA. Or anybody on Github. You sure it's not dead code? |
Yeah just get rid of StepdefGenerator. It's old dead code. |
I'm going to split writing the docs regarding the configuration from this issue. The current docs are talking about a completely different configurations. This will take some work. And while that is being done I'd rather see another PR come in that is going to conflict with everything. The IDEA people will need a release to work with so that also needs a merge. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
For a working example check the calculator examples.
How to build
Install (
mvn install
)datatables/java
fromcucumber/cucumber
Then install this branch. If it fails you may need to remove
pax-exam
fromexamples/pom,xml
. This is okay.Todo
* [ ] Add link to configuration docs in exceptions* [ ] Update documentation* [ ] File IDEA bug about "Pattern expected" warningThis closes #1041