Why do you want to subclass JUnitStory?

The AnnotatedPathRunner is an annotation that does not require inheritance, although it does support it (i.e. you can inherit from an annotated class.

In any case, it's designed to run multiple stories, like JUnitStories.

Cheers

On 14/06/2013 16:52, Luigi Suardi wrote:

Basically I have many java classes derived from JUnitStory with their own story file and I need Junit to report separately for each class. Right now, all stories are run in one single execution with all scenario, story, failure... counters set globally. I would need these counters per class.

Thank you.

*From:*Luigi Suardi
*Sent:* Friday, June 14, 2013 10:32 AM
*To:* [email protected]
*Subject:* RE: [jbehave-user] failures in junit

How can I use this when implementing subclasses of JunitStory?

Thanks.

*From:*Mauro Talevi [mailto:[email protected]]
*Sent:* Thursday, June 06, 2013 2:34 AM
*To:* [email protected]
*Subject:* Re: [jbehave-user] failures in junit

You can use an AnnotatedPathRunner:

https://github.com/jbehave/jbehave-core/blob/master/examples/annotations/src/main/java/org/jbehave/examples/core/annotations/CoreAnnotatedPathRunner.java

This will show you a result for each story path.

On 05/06/2013 20:55, Luigi Suardi wrote:

    Hi,

    I have a very basic setup with one story file, 3-4 scenarios and
    multiple stories. I run Junit in Eclipse. When there are failures
    during story execution Junit always reports only 1 error, even
    when multiple stories fail. How should I configure jbehave so that
    junit returns proper count of errors and failures? I have searched
    the archive but have not found an answer.

    Thank you!

    Luigi

    PROS Inc.


Reply via email to