Re: [geb-user] Geb and Cucumber

2020-05-27 Thread Stefan Hildebrandt
Hi Mike, 

I have a small example project for testcontainers with an example with geb and 
cucumber (and testcontainers) using gradle. 

[ 
https://github.com/hildebrandttk/testcontainers-examples/blob/master/build.gradle
 | 
https://github.com/hildebrandttk/testcontainers-examples/blob/master/build.gradle
 ] 

The setup differs to marcins example. The glue code is in 

[ 
https://github.com/hildebrandttk/testcontainers-examples/blob/master/42-cucumber/src/test/groovy/tk/hildebrandt/testcontainers/geb/GebEnabledStep.groovy
 | 
https://github.com/hildebrandttk/testcontainers-examples/blob/master/42-cucumber/src/test/groovy/tk/hildebrandt/testcontainers/geb/GebEnabledStep.groovy
 ] 
[ 
https://github.com/hildebrandttk/testcontainers-examples/blob/master/42-cucumber/src/test/groovy/tk/hildebrandt/testcontainers/geb/GebLifeCycle.groovy
 | 
https://github.com/hildebrandttk/testcontainers-examples/blob/master/42-cucumber/src/test/groovy/tk/hildebrandt/testcontainers/geb/GebLifeCycle.groovy
 ] 

The style is not very groovy, but I prefere writing typed pages and using it in 
a fluent api manner. I will try to update/extend the examples within the next 
days. 

regrads Stefan 




Von: "Marcin Erdmann"  
An: "geb-user"  
Gesendet: Mittwoch, 27. Mai 2020 21:54:32 
Betreff: Re: [geb-user] Geb and Cucumber 




BQ_BEGIN

Mike, 

Unfortunately I don't have much experience with cucumber other than maintaining 
the example project for using Geb with it so I cannot offer any advice on how 
to get it working with the newer stack you are using. On the other hand, if you 
do get it working then I would appreciate it if you could feed back what 
versions and what plugins you ended up using so that I can update the example 
project. It might be beneficial to others. 

> Additionally, Cucumber Groovy example uses Maven and I wasn't able to figure 
> out or find the Cucumber dependency being used there 

It looks like automated publishing of versions has been stopped after 4.7.1: [ 
https://github.com/cucumber/cucumber-jvm-groovy/commit/30fa9382ba0fa1ac211d1cd263bfce4e2aa791c8
 | 
https://github.com/cucumber/cucumber-jvm-groovy/commit/30fa9382ba0fa1ac211d1cd263bfce4e2aa791c8
 ] and no releases have been made since. On the other hand there seem to be a 
lot of activity on the repo lately, so maybe another release is coming soon: [ 
https://github.com/cucumber/cucumber-jvm-groovy/commits/master | 
https://github.com/cucumber/cucumber-jvm-groovy/commits/master ] . Indeed: [ 
https://github.com/cucumber/cucumber-jvm-groovy/issues/19#issuecomment-634783593
 | 
https://github.com/cucumber/cucumber-jvm-groovy/issues/19#issuecomment-634783593
 ] . 

Thanks, 
Marcin 

On Sun, May 24, 2020 at 5:24 PM Mike Hunter < [ mailto:mickste...@gmail.com | 
mickste...@gmail.com ] > wrote: 

BQ_BEGIN

A few years back at a previous employer, Geb and Cucumber were used very 
successfully. I personally helped build up the solutions so at the time, felt 
like I knew the in's and out's of the tooling pretty well. That was back when 
Java 8 was newer etc. and since moving on - I've not kept up to date with the 
tools. 
Fast forward, and I'm now currently trying to put together a POC of these tools 
- however; I'm struggling getting these two tools to work well with latest 
versions of Groovy, Gradle, Java 11, etc. Geb's cucumber example still shows 
Java 8 and Gradle 4.x (from what I can tell it's because of the 
incompatibilities to various plugins, specifically 
'com.github.samueltbrown.cucumber'. I really like that plugin as it used to 
always "work". I attempted to use a different one but didn't have much luck 
getting it to find the Groovy glue / env on classpath. Additionally, I see a 
few options now for Cucumber / Groovy but I'm not sure which is the better 
option (given I've been able to get either to work yet). I've tried both 
info.cukes:cucumber-groovy:1.2.5 which is used in Geb's cucumber example, and 
the seemingly newer one, io.cucumber:cucumber-groovy:4.7.1 which I found being 
used in Cucumber's Gradle example, [ 
https://github.com/cucumber/cucumber-java-skeleton | 
https://github.com/cucumber/cucumber-java-skeleton ] . Additionally, Cucumber 
Groovy example uses Maven and I wasn't able to figure out or find the Cucumber 
dependency being used there: [ 
https://github.com/cucumber/cucumber-jvm-groovy/blob/master/examples/pom.xml | 
https://github.com/cucumber/cucumber-jvm-groovy/blob/master/examples/pom.xml ] 
(they're example uses, io.cucumber:cucumber-jvm-groovy:5.1.3-SNAPSHOT). 
I've found using Groovy with Cucumber so simple and easy in the past, however; 
for as long as I can remember, the Cucumber-Groovy implementation has been 
unsupported for years ( [ https://cucumber.io/docs/installation/ | 
https://cucumber.io/docs/installation/ ] ), though I've not ran into a problem 
until now trying to get things working. I'd also like to keep using Groovy to 
help push using Geb w/ Spock (whi

Re: [geb-user] Geb and Cucumber

2020-05-27 Thread Marcin Erdmann
Mike,

Unfortunately I don't have much experience with cucumber other than
maintaining the example project for using Geb with it so I cannot offer any
advice on how to get it working with the newer stack you are using. On
the other hand, if you do get it working then I would appreciate it if you
could feed back what versions and what plugins you ended up using so that I
can update the example project. It might be beneficial to others.

> Additionally, Cucumber Groovy example uses Maven and I wasn't able to
figure out or find the Cucumber dependency being used there

It looks like automated publishing of versions has been stopped after
4.7.1:
https://github.com/cucumber/cucumber-jvm-groovy/commit/30fa9382ba0fa1ac211d1cd263bfce4e2aa791c8
and
no releases have been made since. On the other hand there seem to be a lot
of activity on the repo lately, so maybe another release is coming soon:
https://github.com/cucumber/cucumber-jvm-groovy/commits/master. Indeed:
https://github.com/cucumber/cucumber-jvm-groovy/issues/19#issuecomment-634783593
.

Thanks,
Marcin

On Sun, May 24, 2020 at 5:24 PM Mike Hunter  wrote:

> A few years back at a previous employer, Geb and Cucumber were used very
> successfully.  I personally helped build up the solutions so at the time,
> felt like I knew the in's and out's of the tooling pretty well.  That was
> back when Java 8 was newer etc. and since moving on - I've not kept up to
> date with the tools.
>
> Fast forward, and I'm now currently trying to put together a POC of these
> tools - however; I'm struggling getting these two tools to work well with
> latest versions of Groovy, Gradle, Java 11, etc.  Geb's cucumber example
> still shows Java 8 and Gradle 4.x (from what I can tell it's because of the
> incompatibilities to various plugins, specifically
> 'com.github.samueltbrown.cucumber'.  I really like that plugin as it used
> to always "work".  I attempted to use a different one but didn't have much
> luck getting it to find the Groovy  glue / env on classpath.  Additionally,
> I see a few options now for Cucumber / Groovy but I'm not sure which is the
> better option (given I've been able to get either to work yet).  I've tried
> both info.cukes:cucumber-groovy:1.2.5 which is used in Geb's cucumber
> example, and the seemingly newer one, io.cucumber:cucumber-groovy:4.7.1
> which I found being used in Cucumber's Gradle example,
> https://github.com/cucumber/cucumber-java-skeleton.  Additionally,
> Cucumber Groovy example uses Maven and I wasn't able to figure out or find
> the Cucumber dependency being used there:
> https://github.com/cucumber/cucumber-jvm-groovy/blob/master/examples/pom.xml
> (they're example uses, io.cucumber:cucumber-jvm-groovy:5.1.3-SNAPSHOT).
>
> I've found using Groovy with Cucumber so simple and easy in the past,
> however; for as long as I can remember, the Cucumber-Groovy implementation
> has been unsupported for years (https://cucumber.io/docs/installation/),
> though I've not ran into a problem until now trying to get things working.
> I'd also like to keep using Groovy to help push using Geb w/ Spock (which
> I've got working fine).  I'm just trying to enable re-using the same Geb
> pages by Cucumber's specs now.
>
> So, in an effort to try and keep this as short as possible - any
> recommendations / success stories out there using Java 11, Gradle 6+, and
> Groovy w/ Cucumber?  And if so, what specific versions and plugins are
> working for you?
>
> Thanks in advance!!
>
> Mick
>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to geb-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/59fe2568-933a-4ca5-ab2a-203135254e50%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQQbcNWSPdhe8eJv8fgccxXABn-0nVmmUcNpvdw--6DX0g%40mail.gmail.com.


[geb-user] Geb and Cucumber

2020-05-24 Thread Mike Hunter
A few years back at a previous employer, Geb and Cucumber were used very 
successfully.  I personally helped build up the solutions so at the time, 
felt like I knew the in's and out's of the tooling pretty well.  That was 
back when Java 8 was newer etc. and since moving on - I've not kept up to 
date with the tools.  

Fast forward, and I'm now currently trying to put together a POC of these 
tools - however; I'm struggling getting these two tools to work well with 
latest versions of Groovy, Gradle, Java 11, etc.  Geb's cucumber example 
still shows Java 8 and Gradle 4.x (from what I can tell it's because of the 
incompatibilities to various plugins, specifically 
'com.github.samueltbrown.cucumber'.  I really like that plugin as it used 
to always "work".  I attempted to use a different one but didn't have much 
luck getting it to find the Groovy  glue / env on classpath.  Additionally, 
I see a few options now for Cucumber / Groovy but I'm not sure which is the 
better option (given I've been able to get either to work yet).  I've tried 
both info.cukes:cucumber-groovy:1.2.5 which is used in Geb's cucumber 
example, and the seemingly newer one, io.cucumber:cucumber-groovy:4.7.1 
which I found being used in Cucumber's Gradle 
example, https://github.com/cucumber/cucumber-java-skeleton.  Additionally, 
Cucumber Groovy example uses Maven and I wasn't able to figure out or find 
the Cucumber dependency being used 
there: 
https://github.com/cucumber/cucumber-jvm-groovy/blob/master/examples/pom.xml 
(they're example uses, io.cucumber:cucumber-jvm-groovy:5.1.3-SNAPSHOT).

I've found using Groovy with Cucumber so simple and easy in the past, 
however; for as long as I can remember, the Cucumber-Groovy implementation 
has been unsupported for years (https://cucumber.io/docs/installation/), 
though I've not ran into a problem until now trying to get things working.  
I'd also like to keep using Groovy to help push using Geb w/ Spock (which 
I've got working fine).  I'm just trying to enable re-using the same Geb 
pages by Cucumber's specs now.

So, in an effort to try and keep this as short as possible - any 
recommendations / success stories out there using Java 11, Gradle 6+, and 
Groovy w/ Cucumber?  And if so, what specific versions and plugins are 
working for you?

Thanks in advance!!

Mick

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to geb-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/59fe2568-933a-4ca5-ab2a-203135254e50%40googlegroups.com.