Alexis Mas | 18 May 2013 20:47
Picon
Gravatar

[Cucumber] Provide predefined steps on a java lib

Hi, I'm trying to develop a java lib to provide a set of predefined steps for Android development.

On a normal project the structure will have a feature and steps folder for testing the app, but In this case the steps are the lib itself.

So that means steps should be under src/ folder like a normal source file?

Is it possible to tell cucumber, "here you can find the steps" ?

Would you recommend to test the lib with the lib itself?

For example consider this scenario

Given I launch "SampleActivity"
Then Current activity should be "SampleActivity"

Both steps will be defined on the lib, but also can be used to test the lib itself.

Regards,
Alexis.

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Jarl Friis | 18 May 2013 06:39
Picon
Gravatar

[Cucumber] [Ruby][Aruba] New version 0.5.3 released.

Main improvements:

* Fix for UTF-8 support (#151 Matt Wynne, Jarl Friis)
* Fix for open file leakage (#150  <at> JonRowe)

Details on:
https://github.com/cucumber/aruba/compare/v0.5.2...v0.5.3

Jarl

--

-- 
-- Rules --

1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.

You received this message because you are subscribed to the Google Groups Cukes group. To post to this
group, send email to cukes@... To unsubscribe from
this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
--- 
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe@...
For more options, visit https://groups.google.com/groups/opt_out.

nicolas.long | 17 May 2013 18:34
Picon
Picon
Favicon

[Cucumber] [JVM] release schedule

Hi, just wondering when the next release (1.1.4) of Cucumber JVM will happen? I've noticed the Gherkin version has been bumped in master, but there's no release yet. Anything I can do to speed up the process?


I'm relying on a Scala plugin which has some issues at the moment because 1.1.3 relies on an older version of Gherkin which has a few bugs.

Thanks,

Nic

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
adhamselman | 17 May 2013 18:06
Picon

[Cucumber] Accessing world object outside of a step

Hello,

I am trying to attach a world object to a drb server and at the moment the only place i know where to do that is in a step. Is there another place i can access it that makes more sense, like AfterConfiguration? I tried there but the world object is not in scope.
Thanks

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
adhamselman | 17 May 2013 17:52
Picon

[Cucumber] Accessing CallbackWorld outside of a step

Hello,

I am trying to setup a drb server that expose the CallbackWorld object. At the moment the only place i can find where to access this object is inside a step. It is possible to expose this object outside of a step? I tried in AfterConfiguration(?) but it is out of scope there.
Thanks

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Phani Srikar Ganti | 17 May 2013 17:13
Picon

[Cucumber] [Ruby] yard graph

Hi All, I'm trying to use yard for documenting ruby code. It is generating decent documentation when I run yard doc, although, I also want to generate diagrams. I'm getting the following stdout when I'm running "yard graph" and it doesn't generate any diagrams, any suggestions on what it could be? I saw some discussions online that installing previous versions worked for them, although, I'm still facing issues:


digraph yard {
  graph [rankdir=BT rank=sink outputMode=nodesfirst packMode="graph" splines=true];
  node [shape=record rank=sink rankType=sink];
  Root [label="{root root}" rank=sink];
  subgraph cluster_ {
    label = ""; labelloc=b;
    Xyz [label="{module Xyz}" rank=sink];
    subgraph cluster_Xyz {
      label = "Xyz"; labelloc=b;
      Xyz_Abc [label="{module Abc}" rank=sink];
      subgraph cluster_Xyz_Abc {
        label = "Abc"; labelloc=b;
        Xyz_Abc_Def [label="{module Def}" rank=sink];
        subgraph cluster_Xyz_Abc_Def {
          label = "Def"; labelloc=b;
        }
      }
    }
  }
}

Thanks!
Srikar

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Marvin Schramm | 17 May 2013 16:31
Picon

[Cucumber] cucumber-weld problem

It seems that if i activate cucumber-weld (with org.jboss.weld.se), this happens:

<at> Before public void before() { ExampleClass ec = new ExampleClass(); } <at> Given("^someGiven") public void given() { ec.bar();<----throws nullpointer with cucumber-weld activated } <at> When("^someWhen") public void when() { ec.bar();<----throws nullpointer with cucumber-weld activated } <at> Then("^someGiven") public void then() { ec.bar();<----throws nullpointer with cucumber-weld activated }

Looks like that every method is executed independently and a scenario can't hold a state in this way. As soon as i remove "org.jboss.weld.se" from my pom.xml CDI doesnt work anymore (as expected) but the Nullpointers are gone. Tested with (1.1.2 and 1.1.3)

I checked out this code also and confirmed the issue too "https://github.com/GallifreyanCode/cucumber-jvm-examples/tree/master/cucumber-example-cdi" (cucumber 1.0.0.RC20)

Aslak Hellesøy said this is not a bug, but that im doing something wrong, did anyone encounter this issue? Or can help me to solve it?

Greetings


--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
theposob | 17 May 2013 15:52
Favicon

[Cucumber] [JVM] Passing Ant Value to Java

I am currently running several tests via cucumber-jvm, and I am kicking them off via an ant script. I am passing values to the ant script via command line at run, which are then overriding my Cucumber.Options values. This is working fantastic, and allows me to select different feature files, and different scenarios with specific tags on the fly. My question is, can my actual java code access these values from the ant script. Anywhere in the javacode would be acceptable, but ideally my <at> Before method could access these values to properly setup my testing environment based on the tests being run. Thanks in advance for the support!

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Bilal Ejaz | 17 May 2013 12:48
Picon

[Cucumber] Tags not functioning

Hi Aslak, 


thank you for you prompt reply, I have input the following in the command line (gradle cucumber -PPlatform="Android" -PAppName="Mustatrd" -Dcucumber.options="--tags <at> my"). it just runs the whole feature without acknowledging the tags I am specifying. 

I have two scenarios which contains tags , below is my gradle.feature file specifying tags

<at> ff
Feature:Gradle-Cucumber integration

<at> my
Scenario: run app non-mustard
Given run simple non-mustard steps

<at> second
Scenario: run app mustard
Given run simple mustard steps

<at> Cucumber.Options(format = {"pretty", "html:build/cucumber-html-report"}, tags = {" <at> my", " <at> first"}). What I was hopping for it to execute only one tag (which is scenario with <at> my tag). Could you please elaborate on this matter. 

Kind Regards, 

Bilal Ejaz

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Tim Walker | 16 May 2013 20:21
Picon

[Cucumber] Publishing Cukes

Hi All, 

Like a lot of y'all, we need to publish our cukes for consumption by business and product owners in a secure project. I seek guidance or experiential reports from the group. The alternatives I see are:

1) Relish
I really like what Matt has done and think that's probably the way to go but I need a version of Relish that can run on our own servers, AWS or similar. Does anyone have experience, guidance and an idea of the cost of what's involved getting that set up? 

2) Cucumber-JVM-Reports
The reports generated from this awesome tool are gorgeous. Not sure if users would then need access to the jenkins/hudson server to view them, or if they can be exported to another server or similar. Any experience doing this?

3) Cucumber Reports or HTML Formatters (or roll-our own formatter)
Seems like the built in reports are pretty nice, embedded screenshots, roll your own or ? 

4) ???

*WWAAMD?

Appreciate any feedback! 

Thank you, 

Tim
*What Would Aslak and Matt Do?

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Bilal Ejaz | 16 May 2013 16:34
Picon

[Cucumber] Cucumber JVM Tags with Gradle

I am strugling with using tags. I have created a project which contains  <at> Cucumber.Options(format = {"pretty", "html:build/cucumber-html-report"}, tags = {" <at> my", " <at> first"}). nevertheless when i try to run via command line using gradle cucumber -Pproject="Sugar" -Ptags=" <at> first". by inputting this command I am expecting to run only that particular that scenario, but it runs the whole feature file it doesn't acknowldge -Ptags ="first" at all. 

Please Help.


Kind Regards, 

Bilal Ejaz

--
-- Rules --
 
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
 
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cukes-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Gmane