Having Latest Tests Results info in the notified email with Hudson

一笑奈何 提交于 2019-12-06 02:51:22

问题


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?


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/2845020/having-latest-tests-results-info-in-the-notified-email-with-hudson

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!