Friday, July 25, 2003

I got Maven to send email notifications when tests fail. This should improve the usefulness of our JUnit suite since I doubt any of our developers were checking the build results manually on a daily basis. Getting it work was a bit of a challenge, but I had a lot of help from Brett Porter on the Maven users mailing list. He added the details of his response to the Maven Wiki here:

http://wiki.codehaus.org/maven/EmailTestReports?action=highlight&value=maven.xml

I made a couple of additions as well, to help Maven newbies like myself. I also modified junit-noframes.xsl to only show the failing tests. Have I mentioned how much I hate XSL? I'm sure it's powerful and all, but I always find myself guessing until the transformations work.

No comments: