You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jose Gonzalez Gomez <jg...@gmail.com> on 2006/06/21 09:21:59 UTC
[M2] How to know which test failed with TestNG
Hi there,
I'm using TestNG to run tests in my project, and I'm facing a problem:
whenever a test fails I get the following output:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running All
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec
<<< FAILURE!
Results :
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0
As you can see, there is no information about which test failed, and the
only way I've found to know this is to generate the site including the
surefire report, but this is time consuming. I've also tried using the -e
option as suggested in the output, but I only get a stack trace with no
extra information. Am I missing anything?
Best regards
Jose
Re: [M2] How to know which test failed with TestNG
Posted by Brett Porter <br...@gmail.com>.
there should be a surefire-reports directory with text files in it.
On 21/06/06, Jose Gonzalez Gomez <jg...@gmail.com> wrote:
> Hi there,
>
> I'm using TestNG to run tests in my project, and I'm facing a problem:
> whenever a test fails I get the following output:
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running All
> Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec
> <<< FAILURE!
>
> Results :
> Tests run: 7, Failures: 1, Errors: 0, Skipped: 0
>
> As you can see, there is no information about which test failed, and the
> only way I've found to know this is to generate the site including the
> surefire report, but this is time consuming. I've also tried using the -e
> option as suggested in the output, but I only get a stack trace with no
> extra information. Am I missing anything?
>
> Best regards
> Jose
>
>
--
Apache Maven - http://maven.apache.org
"Better Builds with Maven" book - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org