I have installed the following plugins on my Jenkins:
Then I pointed the paths to my NUnit reports *.xml's in plugin settings (I tried both Nunit and xUnit plugins). After build I can see the test reports in the Jenkins web page, but I can't achieve it in emails.
What I unsuccessfully tried to do:
Render ${FAILED_TESTS} value in the email-ext plugin configuration. It is rendered as "No tests ran."
-
<%
if(build.testResultAction) {
%>
There are some tests
<% } else { %>
Nothing
<% } %>
unfortunately, it is rendered as "Nothing".
So the problem I can't see tests results in emails (but it is available in the web page). Have someone solved such problem?
Found a workaround. All works ok when I use free-style project (not multi-configuration project as I used before). It seems like a bug of a plugin or Jenkins.