I've created story files, and I've added the different scenarios that goes
with each story in the same file.
When running the story files, I'm getting each scenario (and story) all
written out to the console, as well as a status stating "Pending" for those
I haven't start to implement, and "Failed" for those who fails.
E.g. (a modified example):
Given that there are 0 books in database
When a checkout request arrives (FAILED)
Then the user shall get an error message "no available books in database"
(NOT PERFORMED)
Given that there are 1 books in database (PENDING)
When a checkout request arrives (NOT PERFORMED)
Then the user shall get the list of books available (NOT PERFORMED)
I'm quite new to JBehave myself, but I guess it is possible to create a
template that defines the output of the ran scenarios and how you would like
to present this? (E.g. for CI)?
Cheers,
Egil
On Wed, Dec 3, 2008 at 11:51 AM, Micael Vesterlund <
[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm a first time user of JBehave.
> I tried the trader example from the source codebase.
> When invoking mvn integration-test, you will among others see the following
> output in system out
>
> * [jbehave:run-scenarios {execution: run-scenarios-found}]
> Running scenario
> org.jbehave.examples.trader.scenarios.StatusAlertCanBeActivated
> Running scenario
> org.jbehave.examples.trader.scenarios.StatusAlertIsNeverActivated
> Running scenario
> org.jbehave.examples.trader.scenarios.TraderSellsAllStocks
> ------------------------------------------------------------------------
> BUILD SUCCESSFUL
>
> *Thats seems okay but my question are:
> Are there no report as a result from the run, like a Junit report?
>
> Micael.
>
>
--
See my pictures at
http://www.flickr.com/photos/[EMAIL PROTECTED]/
free code-giveaways at http://codeisland.blogspot.com/