Skip to content

Commit

Permalink
Restored to initial state - unhandled All Failed Tests sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahad Mammadov committed Dec 5, 2024
1 parent ed94ffe commit ea466b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,7 @@ THE SOFTWARE.
</thead>
<j:forEach var="f" items="${it.failedTests}" varStatus="i">
<tr>
<j:set var="rawPath" value="${f.getRelativePathFrom(it)}" />
<j:set var="encodedRelativePath">
<j:forEach items="${rawPath.split('/')}" var="component" varStatus="i">
<j:trim var="trimmedComponent" value="${component}" />
<j:invokeStatic var="encodedComponent" className="hudson.Util" method="rawEncode">
<j:arg value="${trimmedComponent}" />
</j:invokeStatic>
<j:if test="${i.index > 0}">/</j:if>${encodedComponent}
</j:forEach>
</j:set>
<td class="pane no-wrap"><t:failed-test result="${f}" url="${encodedRelativePath}"/></td>
<td class="pane no-wrap"><t:failed-test result="${f}" url="${f.getRelativePathFrom(it)}"/></td>
<td class="pane no-wrap" style="text-align:right;" data="${f.duration}">
${f.durationString}
</td>
Expand Down
24 changes: 2 additions & 22 deletions src/test/resources/hudson/tasks/test/TrivialTestResult/body.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,12 @@ THE SOFTWARE.
<j:forEach var="f" items="${it.failedTests}" varStatus="i">
<tr>
<td class="pane">
<j:set var="rawPath" value="${f.getRelativePathFrom(it)}" />
<j:set var="encodedRelativePath">
<j:forEach items="${rawPath.split('/')}" var="component" varStatus="i">
<j:trim var="trimmedComponent" value="${component}" />
<j:invokeStatic var="encodedComponent" className="hudson.Util" method="rawEncode">
<j:arg value="${trimmedComponent}" />
</j:invokeStatic>
<j:if test="${i.index > 0}">/</j:if>${encodedComponent}
</j:forEach>
</j:set>
<a id="test-${f.fullName}-showlink" href="#"
onclick='javascript:showStackTrace("test-${f.fullName}","${encodedRelativePath}/summary")'>&gt;&gt;&gt;</a>
onclick='javascript:showStackTrace("test-${f.fullName}","${f.getRelativePathFrom(it)}/summary")'>&gt;&gt;&gt;</a>
<a id="test-${f.fullName}-hidelink" href="#" style="display:none"
onclick='javascript:hideStackTrace("test-${f.fullName}")'>&lt;&lt;&lt;</a>
<st:nbsp/>
<j:set var="rawPath" value="${f.getRelativePathFrom(it)}" />
<j:set var="encodedRelativePath">
<j:forEach items="${rawPath.split('/')}" var="component" varStatus="i">
<j:trim var="trimmedComponent" value="${component}" />
<j:invokeStatic var="encodedComponent" className="hudson.Util" method="rawEncode">
<j:arg value="${trimmedComponent}" />
</j:invokeStatic>
<j:if test="${i.index > 0}">/</j:if>${encodedComponent}
</j:forEach>
</j:set>
<a href="${encodedRelativePath}"><st:out value="${f.fullName}"/></a>
<a href="${f.getRelativePathFrom(it)}"><st:out value="${f.fullName}"/></a>
<st:nbsp/>
<j:forEach var="badge" items="${f.testActions}">
<st:include it="${badge}" page="badge.jelly" optional="true"/>
Expand Down

0 comments on commit ea466b7

Please sign in to comment.