Email-ext plugin does not work with testng results

295 views
Skip to first unread message

zoltan luspai

unread,
Oct 4, 2012, 8:27:13 AM10/4/12
to jenkins...@googlegroups.com, zkop...@gmail.com
Dear Developers,

We have the same problem that already described in an issue, that the email-ext plugin does not include the failed tests in the emails when used with testng. The bug is filed here: [https://issues.jenkins-ci.org/browse/JENKINS-10340], but unfortunately that is set to "won't fix". Why? This seems a quite serious issue to us, and as testng is a very popular test framework I think this will disturb many others.

Even if this would not be fixed: is there any hints about how to work around this? Maybe others have an email script already? Please share your knowledge.

(Btw; I'm using the latest jenkins with the latest plugins available at the time of this writing).

Thanks,
Zoltan

zoltan luspai

unread,
Oct 4, 2012, 9:04:26 AM10/4/12
to jenkins...@googlegroups.com, zkop...@gmail.com
Dear All,

I've found a workaround: because the Testng's ant task also generates the junit compatible reports we can use that for putting the failed tests to the emails. Just the Junit report publisher to the Jenkins project, and set the "Test report XMLs" to find the junit formatter xmls, like: "**/junitreports/*.xml".
Suddenly the failing tests will start to appear in the emails.

Cheers,
Zoltan


Vinu Joseph

unread,
Jan 7, 2015, 12:59:53 AM1/7/15
to jenkins...@googlegroups.com, zkop...@gmail.com
Reply all
Reply to author
Forward
0 new messages