JUnit failures report

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JUnit failures report

Xavier Coulon
Hello,

I'm setting up our team server with Hudson (1.121), with is a really great product (and fun to use ;-). Yet, I have the following problem :
when an Ant build with success, I can see the 'Latest Test Result (no failures)'  link on the build summary; but unfortunately, this link does not appear when a build fails because of JUnit tests in errors/failures :-( I need to go to the workspace section to find the HTML report that was produced before my Ant script invoked the '<fail>' task (since JUnit was configured to set some variables in case of errors).
Is this a problem with Hudson or with my way to use ant with Hudson ?

Thank you in advance
Xavier
Reply | Threaded
Open this post in threaded view
|

Re: JUnit failures report

Xavier Coulon
Sorry, it forgot to check the 'Publish JUnit test result report' option in the project configuration..

On 7/26/07, Xavier Coulon <[hidden email]> wrote:
Hello,

I'm setting up our team server with Hudson ( 1.121), with is a really great product (and fun to use ;-). Yet, I have the following problem :
when an Ant build with success, I can see the 'Latest Test Result (no failures)'  link on the build summary; but unfortunately, this link does not appear when a build fails because of JUnit tests in errors/failures :-( I need to go to the workspace section to find the HTML report that was produced before my Ant script invoked the '<fail>' task (since JUnit was configured to set some variables in case of errors).
Is this a problem with Hudson or with my way to use ant with Hudson ?

Thank you in advance
Xavier

Reply | Threaded
Open this post in threaded view
|

Re: JUnit failures report

Stephen Connolly-2
In reply to this post by Xavier Coulon
Xavier wrote
Hello,

I'm setting up our team server with Hudson (1.121), with is a really great
product (and fun to use ;-). Yet, I have the following problem :
when an Ant build with success, I can see the 'Latest Test Result (no
failures)'  link on the build summary; but unfortunately, this link does not
appear when a build fails because of JUnit tests in errors/failures :-( I
need to go to the workspace section to find the HTML report that was
produced before my Ant script invoked the '<fail>' task (since JUnit was
configured to set some variables in case of errors).
Is this a problem with Hudson or with my way to use ant with Hudson ?

Thank you in advance
Xavier
I think that is an issue with how you are using ant.

If you want developers to have their build fail if unit tests fail you could use a property to control whether to fail on test failures or not and have hudson -D the property to not fail if unit tests fail