> Hi,
> There is a problem with your tutorial for Cucumber JVM.
>
Whose tutorial? Where?
> Building the cucumber workspace
Where are you standing, what command are you running?
Aslak
> --
> You received this message because you are subscribed to the Google Groups "Cukes" group.
> 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.
>
What are you trying to accomplish?
> Anyways. The tutorial/getting started I am reffering to is here:
> https://github.com/cucumber/cucumber-jvm
That's not really a tutorial - just a README with some very basic
instructions for early adopters. A web site with proper tutorials is
in the works.
> I am downloading
> cucumber-cucumber-jvm-v1.0.0.RC16-3-g30c87ef
> from
> https://github.com/cucumber/cucumber-jvm
You mean you are doing a git clone of the repo? If not, what exactly
(link) are you downloading?
>
> BTW: this site now says build failing under README.md.
>
Don't worry about that.
It's only because travis requires the build to complete in 15 minutes,
but cucumber-jvm takes longer because travis builds with an empty
local maven repo each time, causing downloads of libs to take along
time and time out the build.
I set up travis as an experiment - it might not be suitable for cucumber-jvm
> After I have downloaded this .zip file I unzip it into a directory and
> navigate with CMD into that directory and say:
>
Try to build cucumber first. See the updated README:
https://github.com/cucumber/cucumber-jvm/blob/master/README.md
For example, you asked "Or is there any better?" upon which I answered
"What are you trying to accomplish?" but now I'm not sure where you
answered that question.
On Tue, Feb 21, 2012 at 11:24 AM, fugmag
<magnus.jens...@testify.no> wrote:
> I am trying to run the java calculator example in GIT. Maybe I am
> doing it wrong, but I am going into
>
> https://github.com/cucumber/cucumber-jvm
>
> and I press the 'zip' icon and get to download the zip file
>
The zip contains the same as the git repo when it was tagged with
v1.0.0.RC16 so that should be fine.
> cucumber-cucumber-jvm-v1.0.0.RC16-6-g353a0fa
>
> this file is unzipped in a directory and I want to open this in
> eclipse and run the java calculator example as i.e. a junit test.
>
> Is this the way it should work?
>
You have to `mvn clean install` from the root folder first. The online
README has instructions about this.
Ok? Is this what you expected to happen? If not, what did you expect?
I don't understand what you are asking now.
> So as I say I want to use cucumber for a java project and I thought
> Cucumber JVM was a good choice
Again - what are you trying to accomplish? It might sound like a dumb
question, but I'm genuinely curious.
>, but I find it diffuclt to run the
> examples to get a bit hands-on with this.
>
That's rather vague. Exactly what error messages are you seeing after
you have followed the instructions in
https://github.com/cucumber/cucumber-jvm/blob/master/README.md
Aslak
I think you just need this subset to get started:
https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-calculator
Does that help?
Rakesh
Rakesh
http://search.maven.org/#search%7Cga%7C1%7Ccucumber-java
Rakesh
Let's take a step back and make sure we all understand what you have done.
2 questions:
1) What dependency in what pom is not in maven central?
2) How did you obtain the example (git clone command or zip download url)
Aslak
I don't use Eclipse (I use IntelliJ) and I don't use Maven either (I
use Gradle). So I'm not sure exactly of the commands.
It sounds right what you have done - you are basically creating a new
maven project in Eclipse - are you new to Java development with
Eclipse?
Give that a go and post back.
Rakesh
best use the release candidates rather than the snapshots for cucumber-jvm.
I think this is the dependencies you need:
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.0.0.RC16</version>
</dependency>
you'll also need:
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.0.0.RC16</version>
</dependency>
I think cucumber-core will automatically be included.
Rakesh
In that case you're getting the latest code in git, and this code
isn't released to maven central. You therefore have to `mvn clean
install` from the root before the examples can work.
Alternatively, download a zip from a release instead, in which case
the jars *will* be in maven central:
https://github.com/cucumber/cucumber-jvm/tags
Ok?
normally, if you declare dependencies in your pom, then maven will
check the public repos (if your work allows it) and download the jars
for you.
If you manually downloaded the jars then things get more complex and
you have to install the jar locally:
http://maven.apache.org/general.html#importing-jars
Try just getting maven to find the dependencies for you.
Rakesh
can you not ask a Java dev to help you out? This stuff is very basic
and to do with setting up java projects in general rather than
cucumber.
Rakesh
I am not sure it is correct, but when I searched Google, I found the information that Eclipse does not support nested output folders.So I changed target/generated-sources to tmp/generated-sources from cucumber-java and everything is working fine now....
--
Posting rules: http://cukes.info/posting-rules.html
---
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.