- Sponsor
-
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
remove cucumber compatibility and stop depending on legacy cucumber code #2214
Comments
developer note: refer #1913 - this code has to be cleaned up, we are also planning to remove the please shout if any concerns cc @joelpramos |
also refer #2083 we have removed karate-mock-servlet junit4 was removed in a previous commit
@kirksl please note this commit as part of refactoring and cleanup for 1.4.0 a6e6f51 we will no longer emit the |
Still have several teams using it and I recall questions on stackoverflow. The linked PR explains why and we use it widely - why do you think no one uses and what’s the need to remove? |
@joelpramos as far as I know there were 2 questions from people who perhaps tried it with no follow-up. in my opinion it is one of those things that people feel makes sense - but never actively use on a daily basis. I honestly think this is not a deal-breaker for karate, but of course just my opinion anyway the main reason for removal is because it gets in the way of moving out of the cucumber regex approach. I believe after we complete that, we will use a DSL grammar which gives us a blank-slate to re-design the |
Thanks for the heads up @ptrthomas |
Shouldn’t get in the way of the rewrite (I haven’t been following recently but I’m sure there’s very good reason). Why don’t you proceed with rewrite, remove this keyword, and we’ll discuss a redesign after? note the original intent which was just to be able to get information of all the matches that failed and not fail on the 1st one to avoid cases of fail/fix/fail etc. maybe we can consider a “multi match block” with syntax where we can put multiple statements (like the new line alternative right now) and that shouldn’t require to preserve state across each execution which is the odd part of the design right now, not really aligned with the rest of karate - just a thought of another way to go at it |
Now that I think about it the only reason why it was expanded to more keywords support was more cause we could and had to do some funky work to identify the type of keyword anyways - and still had to somehow many this not a hack that people could use it as if conditions to be truth to the original karate design |
Sorry for back to back spam but kind of like the “multi match block” approach, maybe even if it just receives a JSON array of matches with a nice way of reporting it back - I’m sure a custom parser that you’re chasing will keep our options open / open more options |
@joelpramos I like the idea of a multi-match. let me try retain this keyword, but most likely I'll have to remove it when I do the cleanup and then we can add back |
1.4.0 released -
|
which means the cucumber for Java plugin is not supported anymore. are we going to use the Karate plugin? |
Intellij Cucumber java plugin will still work if you specify the Main class as: com.intuit.karate.cli.IdeMain |
Eclipse users have a workaround described here: https://stackoverflow.com/a/76294302/143475 |
@ptrthomas, Please don't remove continueOnTestFailure. I am using it heavily and I need that keyword badly in future Karate releases also |
@jeetendrae noted. we got this feedback from others, and agreed, we will not remove it, thanks @joelpramos for the original contribution. I will be locking this thread now, it has gotten too long. |
refer this issue: #2189
this will require us to use a custom parser that gets us out of the cucumber "step regex" that has been the engine for the last 6 years. now that we have official plugins and extensions for IDEs, it is time to make this shift
benefits:
info.cukes:cucumber-java:1.2.5
just for keeping cucumber plugins in IntelliJ and Eclipse happy. context is here: Karate engine re-write - exit from Cucumber but retain 100% syntax backwards compatibility #444 (comment) - and now we can jettison this* Given When And
etcThe text was updated successfully, but these errors were encountered: