views:

209

answers:

3

I have a project with a lot of tests failing, so it would be great for me to receive by email the number of failed tests compare from the latest build. What i need is just the info that appears in the project's page by the test results link:

Latest Test Result (10 failures / -2)

Is this possible? I've already tried the email-ext plugin, but it is not telling me that info (I can have the list of failing tests with output etc., but I really just need that info above).

Any ideas?

A: 

Why not compile the results yourself? When your trying to fix bugs quickly, writing another program at the same time seems counter intuitive.

TheLQ
Um, what? Who said anything about writing another program?
Jonik
+2  A: 

In the end I used a patch for the email-ext plugin, that allows you to have a groovy template for your email. I think this should be integrated in the main plugin btw.

This is the page I read:

http://techkriti.wordpress.com/2008/08/30/using-groovy-with-hudson-to-send-rich-text-email/

hopefully it'll be useful for somebody else

roberto

Roberto
A: 

Seanizer,

I am very very new to all of this. But how would you write a script to send you an email? Ive used the post build task to generate an html file with all the test results, and I would like to email that content. so far it hasn't been possible using the email-ext...thus I think i might need to write a script to send an email...but as of right now i'm at a loss

thanks in advance

lostdog
If you want to ask a question, don't put it in an answerbut start a new thread for it.The "Ask Question" button ins in the top right of this page.More people would see your question and try to answer that way.
sth