George,
thanks for the feedback - always appreciated - but I'm rather puzzled as
to some of your example comments. E.g.
"I would expect
http://jbehave.org/reference/stable/running-examples.html to tell me how
to execute the examples, preferably in different ways". To me that's
what the page does.
Similarly, you when you say that "it took a small note (not prominently
displayed) on from http://jbehave.org/reference/stable/dependencies.html
that lead me to the POM file that downloaded the dependencies."
On that page, under the "Apache Ant" section, it's the first and most
prominent things it says.
And in the "Getting Started" page, it states under the "Run Story" section:
"Be sure to check that you have all the required dependencies
<http://jbehave.org/reference/stable/dependencies.html> in your classpath."
Perhaps, you could contribute some documentation that explains the
getting started from your point of view and how you'd like it
explained. We're always happy to improve via users' contributions.
As for the running of examples, what's written in the Getting Started
page is just a guideline. You should try to run an example from the
ones in source code and if it fails tell us how you're running it. Or
contribute your own example.
Cheers
On 09/12/2011 16:03, George Dinwiddie wrote:
Mauro,
On 12/9/11 7:39 AM, Mauro Talevi wrote:
Hi George,
have you look at
http://jbehave.org/reference/stable/getting-started.html?
Yes, that's the page I started with. It's remarkably light on examples.
It says, "Open your favourite IDE, the ICanToggleACell.java class will
allow itself to run as a JUnit test." In Eclipse, JUnit is reporting
"no tests found."
The http://jbehave.org is just a wordpress facade to multiple reference
guides, but it may be better to replace it with a static frontend to
that it'd be easier to navigate to docs and control the contents of the
welcome page.
If I may be so bold, I'd suggest that a reader focus might be more
helpful. Think about the goals in the minds of the users who come to
the site, and offer pages for those goals.
For example, I would expect
http://jbehave.org/reference/stable/running-examples.html to tell me
how to execute the examples, preferably in different ways (e.g. from
Maven, Ant, JUnit, Command Line). Instead, the information is rather
sketchy. For example, it took a small note (not prominently
displayed) on from
http://jbehave.org/reference/stable/dependencies.html that lead me to
the POM file that downloaded the dependencies. (More dependencies than
I needed for getting started, even though a few failed. I suspect
obsolescence in the POM.) I've spent much time wandering the website
looking for tidbits of information that might prove helpful.
For the examples, they are mostly using Maven but there are also
Ant-based ones:
http://jbehave.org/reference/stable/examples-modules.html
In any case, to answer your question: yes, you can run the stories in
multiple ways: either in IDE or in CLI, via Ant or Maven.
You've been able to run the Story via JUnit in IDE. Have a look at the
examples for running in CLI.
I'm not yet able to run this story via JUnit in the IDE. That's why
I'm asking here.
Which of the examples shows running in CLI? I don't see anything in
the gameoflife example that makes that clear to me.
- George
Cheers
On 08/12/2011 15:39, George Dinwiddie wrote:
I'm finding it surprisingly difficult to get started with JBehave,
when I find Cucumber so easy to use. Mostly it's my unfamiliarity with
Maven, but some of it seems to be difficulty in finding current
information on jbehave.org. Please bear with my ignorant questions and
help me move forward.
I've got the gameoflife example loaded into Eclipse. It compiles and
runs the junit tests.
My current question: How can I run the stories either from the command
line or within the Eclipse junit runner?
thanks,
George