Skip to content

Commit

Permalink
Merge pull request #133 from andreyhsiao/JENKINS-34785
Browse files Browse the repository at this point in the history
[FIXED JENKINS-34785] change table name based on displayName and aggregate …
  • Loading branch information
slide committed May 13, 2016
2 parents 65dffe6 + 1f41cd5 commit 25232b1
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -123,20 +123,20 @@ try {
//cucumberTestResultAction not exist in this build //cucumberTestResultAction not exist in this build
} }
if (junitResultList.size() > 0) { %> if (junitResultList.size() > 0) { %>
<TABLE width="100%">
<TR><TD class="bg1" colspan="2"><B>${junitResultList.first().displayName}</B></TD></TR>
<% junitResultList.each{ <% junitResultList.each{
junitResult -> %> junitResult -> %>
<TABLE width="100%">
<TR><TD class="bg1" colspan="2"><B>${junitResult.description}</B></TD></TR>
<% junitResult.getChildren().each { packageResult -> %> <% 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> <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 -> %> <% packageResult.getFailedTests().each{ failed_test -> %>
<TR bgcolor="white"><TD class="test_failed" colspan="2"><B><li>Failed: ${failed_test.getFullName()} </li></B></TD></TR> <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 --> <!-- CONSOLE OUTPUT -->
Expand Down

0 comments on commit 25232b1

Please sign in to comment.