On Wed, Apr 11, 2012 at 10:10 AM, rsilva4 <rubensilv...@gmail.com> wrote: > I can't find anything about this in the Groovy examples. Here what I > have tried:
> Given(~'^the following external datasources:$') { eds ->
> -- > You received this message because you are subscribed to the Google Groups "Cukes" group. > To post to this group, send email to cukes@googlegroups.com. > To unsubscribe from this group, send email to cukes+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
>> | Running 1 cucumber test... >> org.codehaus.groovy.runtime.InvokerInvocationException: >> groovy.lang.MissingMethodException: No signature of method: >> net.inductiva.collector.ExternalDataSource.create() is applicable for >> argument types: (net.inductiva.collector.ExternalDataSource) values: >> [net.inductiva.collector.ExternalDataSource : null] >> Possible solutions: create(), merge(), read(java.io.Serializable), >> count(), delete(), ident()
>> 'print it' prints nothing, and trying to debug (using eclipse STS) >> does not stop at the breakpoints.
> -- > You received this message because you are subscribed to the Google Groups "Cukes" group. > To post to this group, send email to cukes@googlegroups.com. > To unsubscribe from this group, send email to cukes+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/cukes?hl=en.
> > However, I still don't have a clue how to debug or print stuff in the > > step definitions.
> Are you saying that `println("HELLO")` at the top of your step > definition prints nothing??
> Aslak
> > On 11 Abr, 10:10, rsilva4 <rubensilv...@gmail.com> wrote: > >> I can't find anything about this in the Groovy examples. Here what I > >> have tried:
> >> Given(~'^the following external datasources:$') { eds ->
> >> | Running 1 cucumber test... > >> org.codehaus.groovy.runtime.InvokerInvocationException: > >> groovy.lang.MissingMethodException: No signature of method: > >> net.inductiva.collector.ExternalDataSource.create() is applicable for > >> argument types: (net.inductiva.collector.ExternalDataSource) values: > >> [net.inductiva.collector.ExternalDataSource : null] > >> Possible solutions: create(), merge(), read(java.io.Serializable), > >> count(), delete(), ident()
> >> 'print it' prints nothing, and trying to debug (using eclipse STS) > >> does not stop at the breakpoints.
> > -- > > You received this message because you are subscribed to the Google > Groups "Cukes" group. > > To post to this group, send email to cukes@googlegroups.com. > > To unsubscribe from this group, send email to > cukes+unsubscribe@googlegroups.com. > > For more options, visit this group at > http://groups.google.com/group/cukes?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Cukes" group. > To post to this group, send email to cukes@googlegroups.com. > To unsubscribe from this group, send email to > cukes+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cukes?hl=en.
> | Server running. Browse to http://localhost:8080/collector > HELLO > | Running 1 cucumber test... > | Completed 1 cucumber test, 0 failed in 581ms
> The print inside the step it's not visible.
How do you know the step definition gets executed? Is the output inside Eclipse's "console" window? Can you see it if you run it all from outside eclipse (Maven, Ant, whatever you're using)?
>> > However, I still don't have a clue how to debug or print stuff in the >> > step definitions.
>> Are you saying that `println("HELLO")` at the top of your step >> definition prints nothing??
>> Aslak
>> > On 11 Abr, 10:10, rsilva4 <rubensilv...@gmail.com> wrote: >> >> I can't find anything about this in the Groovy examples. Here what I >> >> have tried:
>> >> Given(~'^the following external datasources:$') { eds ->
>> >> | Running 1 cucumber test... >> >> org.codehaus.groovy.runtime.InvokerInvocationException: >> >> groovy.lang.MissingMethodException: No signature of method: >> >> net.inductiva.collector.ExternalDataSource.create() is applicable for >> >> argument types: (net.inductiva.collector.ExternalDataSource) values: >> >> [net.inductiva.collector.ExternalDataSource : null] >> >> Possible solutions: create(), merge(), read(java.io.Serializable), >> >> count(), delete(), ident()
>> >> 'print it' prints nothing, and trying to debug (using eclipse STS) >> >> does not stop at the breakpoints.
>> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Cukes" group. >> > To post to this group, send email to cukes@googlegroups.com. >> > To unsubscribe from this group, send email to >> > cukes+unsubscribe@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/cukes?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "Cukes" group. >> To post to this group, send email to cukes@googlegroups.com. >> To unsubscribe from this group, send email to >> cukes+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/cukes?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Cukes" group. > To post to this group, send email to cukes@googlegroups.com. > To unsubscribe from this group, send email to > cukes+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cukes?hl=en.
<aslak.helle...@gmail.com> wrote: > On Wed, Apr 11, 2012 at 12:12 PM, Ruben Silva <rubensilv...@gmail.com> wrote: >> Exactly. Your phrasing lead to an experiment:
>> | Server running. Browse to http://localhost:8080/collector >> HELLO >> | Running 1 cucumber test... >> | Completed 1 cucumber test, 0 failed in 581ms
>> The print inside the step it's not visible.
> How do you know the step definition gets executed? > Is the output inside Eclipse's "console" window? > Can you see it if you run it all from outside eclipse (Maven, Ant, > whatever you're using)?
In IntelliJ, clicking on various nodes in the JUnit "tree" will show/hide output so that only what was printed during a certain test (scenario) is shown. I'm not sure if Eclipse behaves the same, but it might. Try selecting the root element.
>>> > However, I still don't have a clue how to debug or print stuff in the >>> > step definitions.
>>> Are you saying that `println("HELLO")` at the top of your step >>> definition prints nothing??
>>> Aslak
>>> > On 11 Abr, 10:10, rsilva4 <rubensilv...@gmail.com> wrote: >>> >> I can't find anything about this in the Groovy examples. Here what I >>> >> have tried:
>>> >> Given(~'^the following external datasources:$') { eds ->
>>> >> | Running 1 cucumber test... >>> >> org.codehaus.groovy.runtime.InvokerInvocationException: >>> >> groovy.lang.MissingMethodException: No signature of method: >>> >> net.inductiva.collector.ExternalDataSource.create() is applicable for >>> >> argument types: (net.inductiva.collector.ExternalDataSource) values: >>> >> [net.inductiva.collector.ExternalDataSource : null] >>> >> Possible solutions: create(), merge(), read(java.io.Serializable), >>> >> count(), delete(), ident()
>>> >> 'print it' prints nothing, and trying to debug (using eclipse STS) >>> >> does not stop at the breakpoints.
>>> > -- >>> > You received this message because you are subscribed to the Google >>> > Groups "Cukes" group. >>> > To post to this group, send email to cukes@googlegroups.com. >>> > To unsubscribe from this group, send email to >>> > cukes+unsubscribe@googlegroups.com. >>> > For more options, visit this group at >>> > http://groups.google.com/group/cukes?hl=en.
>>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Cukes" group. >>> To post to this group, send email to cukes@googlegroups.com. >>> To unsubscribe from this group, send email to >>> cukes+unsubscribe@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/cukes?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "Cukes" group. >> To post to this group, send email to cukes@googlegroups.com. >> To unsubscribe from this group, send email to >> cukes+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/cukes?hl=en.
Just tried using grails command from shell directly same result.
Can it be something related with my logging configuration? It seams unlikely since the first print runs. I know that my step runs because if I include some invalid assertion it fails, p.e.: assert false.
I don't get the Junit tree in eclipse because Cucumber tests are not seen like Junit tests.
Reading this https://github.com/hauner/grails-cucumber/blob/master/CHANGES.md we can realize that with the current release cucumber-jvm is embedded in the plugin, something to change in the next release where it will fetch cucumber-jvm as a dependency and move on to 1.0.2 version.
"Currently the plugin registers the cucumber test type only to the *functional test phase*." can be read in the plugin page, so no unit tests
-- Ruben Silva
On Wed, Apr 11, 2012 at 12:44, aslak hellesoy <aslak.helle...@gmail.com>wrote:
> On Wed, Apr 11, 2012 at 12:38 PM, aslak hellesoy > <aslak.helle...@gmail.com> wrote: > > On Wed, Apr 11, 2012 at 12:12 PM, Ruben Silva <rubensilv...@gmail.com> > wrote: > >> Exactly. Your phrasing lead to an experiment:
> >> | Server running. Browse to http://localhost:8080/collector > >> HELLO > >> | Running 1 cucumber test... > >> | Completed 1 cucumber test, 0 failed in 581ms
> >> The print inside the step it's not visible.
> > How do you know the step definition gets executed? > > Is the output inside Eclipse's "console" window? > > Can you see it if you run it all from outside eclipse (Maven, Ant, > > whatever you're using)?
> In IntelliJ, clicking on various nodes in the JUnit "tree" will > show/hide output so that only what was printed during a certain test > (scenario) is shown. > I'm not sure if Eclipse behaves the same, but it might. Try selecting > the root element.
> Aslak
> > Aslak
> >> -- > >> Ruben
> >> On Wed, Apr 11, 2012 at 11:59, aslak hellesoy <aslak.helle...@gmail.com
> >> wrote:
> >>> On Wed, Apr 11, 2012 at 11:43 AM, rsilva4 <rubensilv...@gmail.com> > wrote: > >>> > I managed to sucessufully test with the datatable:
> >>> > Given(~'^the following external datasources:$') { eds ->
> >>> > However, I still don't have a clue how to debug or print stuff in the > >>> > step definitions.
> >>> Are you saying that `println("HELLO")` at the top of your step > >>> definition prints nothing??
> >>> Aslak
> >>> > On 11 Abr, 10:10, rsilva4 <rubensilv...@gmail.com> wrote: > >>> >> I can't find anything about this in the Groovy examples. Here what I > >>> >> have tried:
> >>> >> Given(~'^the following external datasources:$') { eds ->
> >>> >> 'print it' prints nothing, and trying to debug (using eclipse STS) > >>> >> does not stop at the breakpoints.
> >>> > -- > >>> > You received this message because you are subscribed to the Google > >>> > Groups "Cukes" group. > >>> > To post to this group, send email to cukes@googlegroups.com. > >>> > To unsubscribe from this group, send email to > >>> > cukes+unsubscribe@googlegroups.com. > >>> > For more options, visit this group at > >>> > http://groups.google.com/group/cukes?hl=en.
> >>> -- > >>> You received this message because you are subscribed to the Google > Groups > >>> "Cukes" group. > >>> To post to this group, send email to cukes@googlegroups.com. > >>> To unsubscribe from this group, send email to > >>> cukes+unsubscribe@googlegroups.com. > >>> For more options, visit this group at > >>> http://groups.google.com/group/cukes?hl=en.
> >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Cukes" group. > >> To post to this group, send email to cukes@googlegroups.com. > >> To unsubscribe from this group, send email to > >> cukes+unsubscribe@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/cukes?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Cukes" group. > To post to this group, send email to cukes@googlegroups.com. > To unsubscribe from this group, send email to > cukes+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cukes?hl=en.
On Wed, Apr 11, 2012 at 3:23 PM, Ruben Silva <rubensilv...@gmail.com> wrote: > Yes the output inside Eclipse's "console" window.
> Just tried using grails command from shell directly same result.
> Can it be something related with my logging configuration? It seams unlikely > since the first print runs. I know that my step runs because if I include > some invalid assertion it fails, p.e.: assert false.
> I don't get the Junit tree in eclipse because Cucumber tests are not seen > like Junit tests.
> Reading > this https://github.com/hauner/grails-cucumber/blob/master/CHANGES.md we can > realize that with the current release cucumber-jvm is embedded in the > plugin, something to change in the next release where it will fetch > cucumber-jvm as a dependency and move on to 1.0.2 version.
> "Currently the plugin registers the cucumber test type only to > the functional test phase." can be read in the plugin page, so no unit > tests
> -- > Ruben Silva
> On Wed, Apr 11, 2012 at 12:44, aslak hellesoy <aslak.helle...@gmail.com> > wrote:
>> On Wed, Apr 11, 2012 at 12:38 PM, aslak hellesoy >> <aslak.helle...@gmail.com> wrote: >> > On Wed, Apr 11, 2012 at 12:12 PM, Ruben Silva <rubensilv...@gmail.com> >> > wrote: >> >> Exactly. Your phrasing lead to an experiment:
>> >> | Server running. Browse to http://localhost:8080/collector >> >> HELLO >> >> | Running 1 cucumber test... >> >> | Completed 1 cucumber test, 0 failed in 581ms
>> >> The print inside the step it's not visible.
>> > How do you know the step definition gets executed? >> > Is the output inside Eclipse's "console" window? >> > Can you see it if you run it all from outside eclipse (Maven, Ant, >> > whatever you're using)?
>> In IntelliJ, clicking on various nodes in the JUnit "tree" will >> show/hide output so that only what was printed during a certain test >> (scenario) is shown. >> I'm not sure if Eclipse behaves the same, but it might. Try selecting >> the root element.
>> Aslak
>> > Aslak
>> >> -- >> >> Ruben
>> >> On Wed, Apr 11, 2012 at 11:59, aslak hellesoy >> >> <aslak.helle...@gmail.com> >> >> wrote:
>> >>> On Wed, Apr 11, 2012 at 11:43 AM, rsilva4 <rubensilv...@gmail.com> >> >>> wrote: >> >>> > I managed to sucessufully test with the datatable:
>> >>> > Given(~'^the following external datasources:$') { eds ->
>> >>> > However, I still don't have a clue how to debug or print stuff in >> >>> > the >> >>> > step definitions.
>> >>> Are you saying that `println("HELLO")` at the top of your step >> >>> definition prints nothing??
>> >>> Aslak
>> >>> > On 11 Abr, 10:10, rsilva4 <rubensilv...@gmail.com> wrote: >> >>> >> I can't find anything about this in the Groovy examples. Here what >> >>> >> I >> >>> >> have tried:
>> >>> >> Given(~'^the following external datasources:$') { eds ->
>> >>> >> 'print it' prints nothing, and trying to debug (using eclipse STS) >> >>> >> does not stop at the breakpoints.
>> >>> > -- >> >>> > You received this message because you are subscribed to the Google >> >>> > Groups "Cukes" group. >> >>> > To post to this group, send email to cukes@googlegroups.com. >> >>> > To unsubscribe from this group, send email to >> >>> > cukes+unsubscribe@googlegroups.com. >> >>> > For more options, visit this group at >> >>> > http://groups.google.com/group/cukes?hl=en.
>> >>> -- >> >>> You received this message because you are subscribed to the Google >> >>> Groups >> >>> "Cukes" group. >> >>> To post to this group, send email to cukes@googlegroups.com. >> >>> To unsubscribe from this group, send email to >> >>> cukes+unsubscribe@googlegroups.com. >> >>> For more options, visit this group at >> >>> http://groups.google.com/group/cukes?hl=en.
>> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Cukes" group. >> >> To post to this group, send email to cukes@googlegroups.com. >> >> To unsubscribe from this group, send email to >> >> cukes+unsubscribe@googlegroups.com. >> >> For more options, visit this group at >> >> http://groups.google.com/group/cukes?hl=en.
>> -- >> You received this message because you are subscribed to the Google Groups >> "Cukes" group. >> To post to this group, send email to cukes@googlegroups.com. >> To unsubscribe from this group, send email to >> cukes+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/cukes?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Cukes" group. > To post to this group, send email to cukes@googlegroups.com. > To unsubscribe from this group, send email to > cukes+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cukes?hl=en.
> On Wed, Apr 11, 2012 at 3:23 PM, Ruben Silva <rubensilv...@gmail.com> > wrote: > > Yes the output inside Eclipse's "console" window.
> > Just tried using grails command from shell directly same result.
> > Can it be something related with my logging configuration? It seams > unlikely > > since the first print runs. I know that my step runs because if I include > > some invalid assertion it fails, p.e.: assert false.
> > I don't get the Junit tree in eclipse because Cucumber tests are not seen > > like Junit tests.
> > Reading > > this https://github.com/hauner/grails-cucumber/blob/master/CHANGES.md we > can > > realize that with the current release cucumber-jvm is embedded in the > > plugin, something to change in the next release where it will fetch > > cucumber-jvm as a dependency and move on to 1.0.2 version.
> > "Currently the plugin registers the cucumber test type only to > > the functional test phase." can be read in the plugin page, so no unit > > tests
> > -- > > Ruben Silva
> > On Wed, Apr 11, 2012 at 12:44, aslak hellesoy <aslak.helle...@gmail.com> > > wrote:
> >> On Wed, Apr 11, 2012 at 12:38 PM, aslak hellesoy > >> <aslak.helle...@gmail.com> wrote: > >> > On Wed, Apr 11, 2012 at 12:12 PM, Ruben Silva <rubensilv...@gmail.com
> >> > wrote: > >> >> Exactly. Your phrasing lead to an experiment:
> >> >> The print inside the step it's not visible.
> >> > How do you know the step definition gets executed? > >> > Is the output inside Eclipse's "console" window? > >> > Can you see it if you run it all from outside eclipse (Maven, Ant, > >> > whatever you're using)?
> >> In IntelliJ, clicking on various nodes in the JUnit "tree" will > >> show/hide output so that only what was printed during a certain test > >> (scenario) is shown. > >> I'm not sure if Eclipse behaves the same, but it might. Try selecting > >> the root element.
> >> Aslak
> >> > Aslak
> >> >> -- > >> >> Ruben
> >> >> On Wed, Apr 11, 2012 at 11:59, aslak hellesoy > >> >> <aslak.helle...@gmail.com> > >> >> wrote:
> >> >>> On Wed, Apr 11, 2012 at 11:43 AM, rsilva4 <rubensilv...@gmail.com> > >> >>> wrote: > >> >>> > I managed to sucessufully test with the datatable:
> >> >>> > However, I still don't have a clue how to debug or print stuff in > >> >>> > the > >> >>> > step definitions.
> >> >>> Are you saying that `println("HELLO")` at the top of your step > >> >>> definition prints nothing??
> >> >>> Aslak
> >> >>> > On 11 Abr, 10:10, rsilva4 <rubensilv...@gmail.com> wrote: > >> >>> >> I can't find anything about this in the Groovy examples. Here > what > >> >>> >> I > >> >>> >> have tried:
> >> >>> >> 'print it' prints nothing, and trying to debug (using eclipse > STS) > >> >>> >> does not stop at the breakpoints.
> >> >>> > -- > >> >>> > You received this message because you are subscribed to the Google > >> >>> > Groups "Cukes" group. > >> >>> > To post to this group, send email to cukes@googlegroups.com. > >> >>> > To unsubscribe from this group, send email to > >> >>> > cukes+unsubscribe@googlegroups.com. > >> >>> > For more options, visit this group at > >> >>> > http://groups.google.com/group/cukes?hl=en.
> >> >>> -- > >> >>> You received this message because you are subscribed to the Google > >> >>> Groups > >> >>> "Cukes" group. > >> >>> To post to this group, send email to cukes@googlegroups.com. > >> >>> To unsubscribe from this group, send email to > >> >>> cukes+unsubscribe@googlegroups.com. > >> >>> For more options, visit this group at > >> >>> http://groups.google.com/group/cukes?hl=en.
> >> >> -- > >> >> You received this message because you are subscribed to the Google > >> >> Groups > >> >> "Cukes" group. > >> >> To post to this group, send email to cukes@googlegroups.com. > >> >> To unsubscribe from this group, send email to > >> >> cukes+unsubscribe@googlegroups.com. > >> >> For more options, visit this group at > >> >> http://groups.google.com/group/cukes?hl=en.
> >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Cukes" group. > >> To post to this group, send email to cukes@googlegroups.com. > >> To unsubscribe from this group, send email to > >> cukes+unsubscribe@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/cukes?hl=en.
> > -- > > You received this message because you are subscribed to the Google Groups > > "Cukes" group. > > To post to this group, send email to cukes@googlegroups.com. > > To unsubscribe from this group, send email to > > cukes+unsubscribe@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/cukes?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Cukes" group. > To post to this group, send email to cukes@googlegroups.com. > To unsubscribe from this group, send email to > cukes+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cukes?hl=en.