Good job! I'll add some examples soon, but in the meanwhile:
* Create a new maven project
* Add cucumber-java (which you should have in your local maven repo)
as a dependency
* Write a cucumber feature and save it under
src/test/resources/hello_cucumber.feature
* Write a JUnit test class and put it under
src/test/java/your/pakkage/hello_cucumber_Test.java
* Annotate it with: @RunWith(Cucumber.class) and
@Feature("hello_cucumber.feature") at the class level
* mvn test
This should print some missing stepdefs, which you can put inside a
POJO under src/test/java/your/pakkage/SomeStepdefs.java
Run mvn test again.
Let me know how it goes
Aslak
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/SATHTwK5fKwJ.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cukes?hl=en.
>
On Fri, Aug 19, 2011 at 3:36 AM, Robert <rest...@gmail.com> wrote:
> I've successfully installed Cucumber-JVM on my MacBook Pro :-). Now that I
> have it installed, how do I go about using it?
>Good job! I'll add some examples soon, but in the meanwhile:
* Create a new maven project
* Add cucumber-java (which you should have in your local maven repo)
as a dependency
You'll find the details in cucumber-java's pom
<groupId>cucumber</groupId>
<artifactId>java</artifactId>
<version>0.4.3-SNAPSHOT</version>
When we start publishing jars in Maven central we'll change groupId to
cucumber.cukes.info and the version number to something else -
probably 0.1.0-SNAPSHOT for starters.
Aslak
> https://groups.google.com/d/msg/cukes/-/_SoxE8JWhA8J.
On Fri, Aug 19, 2011 at 11:12 AM, Robert <rest...@gmail.com> wrote:
>
>
> On Friday, August 19, 2011 12:35:52 AM UTC-7, Aslak Hellesøy wrote:
>>
>> On Fri, Aug 19, 2011 at 3:36 AM, Robert <res...@gmail.com> wrote:
>> > I've successfully installed Cucumber-JVM on my MacBook Pro :-). Now
>> > that I
>> > have it installed, how do I go about using it?
>> >
>>
>> Good job! I'll add some examples soon, but in the meanwhile:
>>
>> * Create a new maven project
>> * Add cucumber-java (which you should have in your local maven repo)
>> as a dependency
>
> Hi Aslak,
>
> I guess I'm going to need a little help with this step. To include the
> dependency, what should I add to my pom.xml file (groupId, artifactId, etc)
> ?
>You'll find the details in cucumber-java's pom
<groupId>cucumber</groupId>
<artifactId>java</artifactId>
<version>0.4.3-SNAPSHOT</version>When we start publishing jars in Maven central we'll change groupId to
cucumber.cukes.info and the version number to something else -
probably 0.1.0-SNAPSHOT for starters.Aslak
On Fri, Aug 19, 2011 at 11:12 AM, Robert <rest...@gmail.com> wrote:
>
>
> On Friday, August 19, 2011 12:35:52 AM UTC-7, Aslak Hellesøy wrote:
>>
>> On Fri, Aug 19, 2011 at 3:36 AM, Robert <res...@gmail.com> wrote:
>> > I've successfully installed Cucumber-JVM on my MacBook Pro :-). Now
>> > that I
>> > have it installed, how do I go about using it?
>> >
>>
>> Good job! I'll add some examples soon, but in the meanwhile:
>>
>> * Create a new maven project
>> * Add cucumber-java (which you should have in your local maven repo)
>> as a dependency
>
> Hi Aslak,
>
> I guess I'm going to need a little help with this step. To include the
> dependency, what should I add to my pom.xml file (groupId, artifactId, etc)
> ?
>You'll find the details in cucumber-java's pom
<groupId>cucumber</groupId>
<artifactId>java</artifactId>
<version>0.4.3-SNAPSHOT</version>When we start publishing jars in Maven central we'll change groupId to
cucumber.cukes.info and the version number to something else -
probably 0.1.0-SNAPSHOT for starters.Aslak
Got a stack trace? You'll find them buried far down in target/surefire-reports
> https://groups.google.com/d/msg/cukes/-/aiD6xRFzojgJ.
>> >> > cuke...@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 view this discussion on the web visit
>> > https://groups.google.com/d/msg/cukes/-/_SoxE8JWhA8J.
>> > To post to this group, send email to cu...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > cukes...@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 view this discussion on the web visit
To view this discussion on the web visit https://groups.google.com/d/msg/cukes/-/MPSDv9B9lPkJ.
On Friday, August 19, 2011 4:22:09 AM UTC-7, Aslak Hellesøy wrote:
>> >> > cuk...@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 view this discussion on the web visit
>> > https://groups.google.com/d/msg/cukes/-/_SoxE8JWhA8J.
>> > To post to this group, send email to cu...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > cuke...@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 view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/aiD6xRFzojgJ.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes...@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.
If your application code doesn't use a DI framework, stick with
PicoContainer - it's the fastest, simplest and least intrusive one. If
your app uses a DI container to wire up application objects, go with
the one that matches your app.
Personally I think both Spring and Guice are unnecessary bloat, but
many people are using them, so it makes sense to support them.
Aslak
> https://groups.google.com/d/msg/cukes/-/hw853cx9PWwJ.