Skip to content
Permalink
Browse files

[JENKINS-34785] change table name based on displayName and aggregate …

…test results
  • Loading branch information
andreyhsiao committed May 13, 2016
1 parent 65dffe6 commit 1f41cd521c14c6d0ceffed8578d49b059a644b5e
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/main/resources/hudson/plugins/emailext/templates/groovy-html.template
@@ -123,20 +123,20 @@ try {
//cucumberTestResultAction not exist in this build
}
if (junitResultList.size() > 0) { %>
<TABLE width="100%">
<TR><TD class="bg1" colspan="2"><B>${junitResultList.first().displayName}</B></TD></TR>
<% junitResultList.each{
junitResult -> %>
<TABLE width="100%">
<TR><TD class="bg1" colspan="2"><B>${junitResult.description}</B></TD></TR>
junitResult -> %>
<% junitResult.getChildren().each { packageResult -> %>
<TR><TD class="bg2" colspan="2"> Name: ${packageResult.getName()} Failed: ${packageResult.getFailCount()} test(s), Passed: ${packageResult.getPassCount()} test(s), Skipped: ${packageResult.getSkipCount()} test(s), Total: ${packageResult.getPassCount()+packageResult.getFailCount()+packageResult.getSkipCount()} test(s)</TD></TR>
<% packageResult.getFailedTests().each{ failed_test -> %>
<TR bgcolor="white"><TD class="test_failed" colspan="2"><B><li>Failed: ${failed_test.getFullName()} </li></B></TD></TR>
<% }
} %>
</TABLE>
<BR/>
}
} %>
</TABLE>
<BR/>
<%
}
} %>

<!-- CONSOLE OUTPUT -->

0 comments on commit 1f41cd5

Please sign in to comment.
You can’t perform that action at this time.