On Wed, Jan 14, 2009 at 8:50 AM, Emmanuel Hugonnet <[email protected]> wrote:
> The ScenarioReporter interface accepts String as parameters not Step, so the
> scenario should be parsed another time to get the step 'name'.
> By type I mean "When", "Then" or "And" in the BDD terms not the keywords.
> I don't know a lot about JBehave architecture but it looks like the steps
> extraction is done in the scenario parser with private methods. So should I
> have to reimplement this ?
> Emmanuel
>

I agree that it doesn't seem to be ideal that Strings are passed round
a fair bit for the 'stepAsString' and Steps don't actually have their
names available.

In regards to reporting, I've spiked out a JUnit4Runner for JBehave
that allows story definitions to be run, with each scenario within the
story run as a separate test.  This can be run by the standard
surefire test runner and I think should provide some fairly useful
reporting via the surefire reports.  Hopefully it won't be too long
before I get this into a suitable state to share with others as a
patch for feedback.

As to getting the story definitions from the wiki, I would have
thought that in theory there's nothing to stop you doing that with a
new ScenarioDefiner, as long as you're happy to have a
RunnableScenario extending subclass for each story.

Phil

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to