提交 a372486c 编写于 作者: K kohsuke

resurrected test result on the project top page.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3830 71c3de6d-444a-0410-be80-ed276b4c234a
上级 bc6f3f43
......@@ -35,20 +35,11 @@
Recent Changes
</t:summary>
<j:set var="tr" value="${it.lastBuild.testResultAction}"/>
<j:if test="${tr!=null}">
<t:summary icon="clipboard.gif">
<a href="lastSuccessfulBuild/testReport/">Latest Test Result</a>
<j:choose>
<j:when test="${tr.failCount==0}">
(no failures)
</j:when>
<j:when test="${tr.failCount==1}">
(1 failure)
</j:when>
<j:otherwise>
(${tr.failCount} failures)
</j:otherwise>
</j:choose>
<a href="lastBuild/testReport/">Latest Test Result</a>
<t:test-result it="${tr}" />
</t:summary>
</j:if>
</table>
......
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<t:summary icon="clipboard.gif">
<a href="testReport/">Latest Test Result</a>
<j:choose>
<j:when test="${it.totalCount==0}">
(no tests)
</j:when>
<j:when test="${it.failCount==0}">
(no failures)
</j:when>
<j:when test="${it.failCount==1}">
(1 failure ${it.failureDiffString})
</j:when>
<j:otherwise>
(${it.failCount} failures ${it.failureDiffString})
</j:otherwise>
</j:choose>
<t:test-result />
</t:summary>
</j:jelly>
\ No newline at end of file
<!--
string that reports the test result number in text, like "(5 failures / +3)".
@it : AbstractTestResultAction object
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<j:choose>
<j:when test="${it.totalCount==0}">
(no tests)
</j:when>
<j:when test="${it.failCount==0}">
(no failures)
</j:when>
<j:when test="${it.failCount==1}">
(1 failure ${it.failureDiffString})
</j:when>
<j:otherwise>
(${it.failCount} failures ${it.failureDiffString})
</j:otherwise>
</j:choose>
</j:jelly>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册