You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by kvenkatraman <ku...@gmail.com> on 2009/04/10 12:21:38 UTC

Sending Mail only when test fails

Hi , I want to send mail when the tests fail. The build wont fail since I
have set testFailureIgnore=true.
Is there a way to achieve this i maven?
-- 
View this message in context: http://www.nabble.com/Sending-Mail-only-when-test-fails-tp22985997p22985997.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Sending Mail only when test fails

Posted by Nafter <Hd...@allshare.nl>.
If you use CI Hudson for instance you have the ability to send an e-mail when
there are test failures etc. Hudson also has the ability to use an advanced
e-mail plugin in which you are able to address the content of the message,
e-mail groups etc.

Hugo

Wayne Fay wrote:
> 
>> Hi , I want to send mail when the tests fail. The build wont fail since I
>> have set testFailureIgnore=true.
>> Is there a way to achieve this i maven?
> 
> Traditionally, this would be a function handled by your Continuous
> Integration server, not your Build Tool. So this is not really a Maven
> function IMO. You could possibly write a plugin that would run after
> test phase but I'm not sure what properties it would need to look for
> to know if there were errors or not.
> 
> Wayne
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Sending-Mail-only-when-test-fails-tp22985997p22991907.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Sending Mail only when test fails

Posted by Wayne Fay <wa...@gmail.com>.
> Hi , I want to send mail when the tests fail. The build wont fail since I
> have set testFailureIgnore=true.
> Is there a way to achieve this i maven?

Traditionally, this would be a function handled by your Continuous
Integration server, not your Build Tool. So this is not really a Maven
function IMO. You could possibly write a plugin that would run after
test phase but I'm not sure what properties it would need to look for
to know if there were errors or not.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org