How to get Hudson CI to include test results in status email

I appreciate Hudson, with the goal of converting it from CC.NET. In CC.NET, I received my emails to include test statistics, for example, the number of running tests, the number of failed tests, etc. It even shows in red “this project has no tests,” which is a great motivator, right?

Is there any way to do this in Hudson?

I tried the email-ext plugin because they tell me that it can get a test result and other great things in the email, but I just can't figure out how to do this.

It seems like I need to put a token on “content”, but I don’t see an accessible token that looks like “test results” for me :) Or anyone that will parse some xml that I provide a path, or for example.

Has anyone done this and can help? Thanks!

+6
continuous-integration hudson
source share
2 answers

From the Email plugin-ext wiki page:

To see a list of all available email tokens and what they display, you can click "?". (question mark) at the top of the email-ext section of the project configuration screen.

I can’t check if it is listed in the online help right now, but I think you are looking for the $FAILED_TESTS token.

If you need more recommendations, check out this blog post: Continuous Integration with Hudson, ColdFusion, and MXUnit: Advanced Notification Control . Some screenshots may help.

+2
source share

See this question - Having the latest test results in a notified email with Hudson . It seems the only answer is to crack your own solution until email-ext is improved.

+1
source share