Hi Ben,
JBehave already supports the specification of a story/feature narrative
as you describe below. I've updated an example story to show it:
https://svn.codehaus.org/jbehave/trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/scenarios/trader_sells_all_stocks.scenario
The current impl captures everything before the first Scenario as
unstructured text (hence the name Blurb in the domain module). Hence
not an issue in a plain text report (newlines are maintained) but
becomes less readable in, say, HTML.
What perhaps would be interesting is to add an optional Narrative
element with keywords, so as to be able to distinguish between the
various elements of the narrative ("In order to", "As a", "I want to").
I've created an issue to track this:
http://jira.codehaus.org/browse/JBEHAVE-230
Cheers
Ben Sullivan wrote:
Hi
In Cucumber you can do this:
Feature: Some terse yet descriptive text of what is desired
In order to realize a named business value
As an explicit system actor
I want to gain some beneficial outcome which furthers the goal
Scenario: Some determinable business situation
Given some precondition
And some other precondition
When some action by the actor
And some other action
And yet another action
Then some testable outcome is achieved
And something else we can check happens too
Scenario: A different situation
...
I noticed the JBehave EBNF caters for stories simply as a one or more
scenarios. Are there any plans to allow more details to be fleshed out
around the Story in JBehave like you can do in Cucumber?
Even if it were just:
Story := "Story:"? Description? Narrative? Scenario+ ;
Narrative := (Word Space?)* ;
We'd have a placeholder to give some story/feature context to our
acceptance scenarios which I think my customers would really like.
Cheers
Ben
PS - nice work on the reporting stuff in 2.4 release!
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email