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

On Wed, Jan 14, 2009 at 12:03 AM, Mauro Talevi
<[email protected]>wrote:

> Emmanuel Hugonnet wrote:
>
>> Hi,
>> I am trying to figure out how to use this reporter to produce an xml
>> report 'à la easyb' so I can use easyb maven reporter and its hudson plugin
>> ;)
>> What I am missing is that the steps passed to the report are not typed, so
>> I would have to parse them again to be able to serialize in xml. Shouldn't a
>> step be a type and string ?
>> Emmanuel
>>
>>
> Sorry, I don't quite understand what you mean by "the steps passed to the
> report are not typed".
>
> What you could easily implement is a decorator of another reporter that
> collects the steps and then you can serialise these in XML.
>
> Would you like to have a start on this and provide a patch?
> It would be appreciate it and we could add it to the codebase if it's
> generic enough - i.e. of interest to a sufficiently large userbase.
>
> Cheers
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to