A few of us have come to the conclusion that the core JBehave runner is
not fully integrated with JUnit. Here's a better runner implementation
which treats each test as a separate case
https://github.com/codecentric/jbehave-junit-runner

I also had a crack at it here
http://jira.codehaus.org/browse/JBEHAVE-551 although I'm not supporting
it. My code was also addressing the issue that JBehave was not cleaning
up after every test. My Spring runner supports
@DirtiesContext(AFTER_EACH_TEST_METHOD) while the core spring jbehave
runner does not.

Cheers,
Lance. 

-----Original Message-----
From: Sergey [mailto:[email protected]] 
Sent: 19 July 2012 00:14
To: [email protected]
Subject: [jbehave-user] Reporting in TestNG

I am trying to build a JBehave + TestNG system. I have gone through the
trader-testng examples and was able to run simple tests using the same
setup. The problem I am having is in failure reporting. Since the only
@Test method that TestNG sees is the "run()" method of the
TestNGTraderStories class, all reporting is done under that one method,
losing all error information in the process. So there is no way for me
to know what exactly happened when the test failed. 

I have looked through emails lists and forums, and I cannot find any
information on how to pair up JBehave and Testng reporting the way you
can do it with JUnit.

Has anyone succeeded in making TestNG report every step and/or scenario
as an individual test?

Thanks.


---------------------------------------------------------------------
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


Reply via email to