I have improved the code to have a better hierarchy of story / scenario
/ example and have added a @Steps annotation which can be used in a test
case to provide the steps. I have created 3 Jiras based on the work I
have done
http://jira.codehaus.org/browse/JBEHAVE-551 - Better integration with
JUnit (Separate results for each story/scenario/example)
http://jira.codehaus.org/browse/JBEHAVE-550 - StoryReporterBuilder does
not have an easy way to provide custom StoryReporter(s)
http://jira.codehaus.org/browse/JBEHAVE-549 - StoryReporter forces me to
write non thread safe code
Cheers,
Lance.
________________________________
From: Mauro Talevi [mailto:[email protected]]
Sent: 30 June 2011 16:10
To: [email protected]
Cc: Semmens, Lance
Subject: Re: [jbehave-user] JUnit Runner with separate result for each
Story/Scenario/Example
Hi Lance,
thanks for your contribution. First off, it seems to be working fine
for me, I can't seem the reproduce the problem you mention on the
console reporter.
Secondly, there seems to be quite a big overlap between your test
running and the AnnotatedPathRunner. The improvement you're looking
for is to have the JUnit Description (or child thereof) at the level of
the scenario and/or parametrised scenario - aka the example.
Can you please create a jira issue to this end attaching your
contribution? We can then try to extend the AnnotatedPathRunner based
on it.
Cheers
On 30/06/2011 13:26, [email protected] wrote:
Hi All,
I have taken this to a level where I feel it would be best taken
on by a JBehave expert. I have each Story/Scenario/Example showing up as
a separate entry / test in the junit view.
Please see the screenshot attached
<<jbehave.JPG>>
I'm hoping that at least some of the JBehave users / developers
agree that this is a more user friendly way of developing / running
JBehave JUnit tests in the IDE.
I have attached the source code for my initial attempt at
getting it working, for some reason the tests are showing as pending
after the first failure occurrs rather than being run. The test case to
run is jbehave.ListTest
<<jbehave_deeper_junit_integration.zip>>
Would anyone from the JBehave team like to take this on?
Cheers,
Lance.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mails are not encrypted and cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities
or related financial instruments.
UBS Limited is a company limited by shares incorporated in the United
Kingdom registered in England and Wales with number 2035362.
Registered office: 1 Finsbury Avenue, London EC2M 2PP. UBS Limited
is authorised and regulated by the Financial Services Authority.
UBS AG is a public company incorporated with limited liability in
Switzerland domiciled in the Canton of Basel-City and the Canton of
Zurich respectively registered at the Commercial Registry offices in
those Cantons with Identification No: CH-270.3.004.646-4 and having
respective head offices at Aeschenvorstadt 1, 4051 Basel and
Bahnhofstrasse 45, 8001 Zurich, Switzerland. Registered in the
United Kingdom as a foreign company with No: FC021146 and having a
UK Establishment registered at Companies House, Cardiff, with No:
BR 004507. The principal office of UK Establishment: 1 Finsbury Avenue,
London EC2M 2PP. In the United Kingdom, UBS AG is authorised and
regulated by the Financial Services Authority.
UBS reserves the right to retain all messages. Messages are protected
and accessed only in legally justified cases.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email