invalid percentage
Brought to you by:
sellig
http://eulersharp.sourceforge.net/2004/01swap/docs/net
/index.html
invalid bar that indicates the number of tests
succeeded. (bar = 50%, all test cases failed)
Logged In: YES
user_id=1842282
Originator: NO
Hi,
If you are still interesting in finding the solution :
If the file : toolkit.xsl (which is located in ...\nant\bin)
--------------------------
you just have to replace the line
"<xsl:variable name="successRate" select="$runCount div $total"/>"
by
"<xsl:variable name="successRate" select="($runCount - $failureCount - $ignoreCount) div ($runCount)"/>
"
Be Careful : spaces are important
and in
"<xsl:if test="round($runCount * 200 div $total )!=0">
<span class="covered">
<xsl:attribute name="style">width:<xsl:value-of select="round($runCount * 200 div $total )"/>px</xsl:attribute>
</span>
</xsl:if>
" you just have to replace "runCount" by "successCount" !
Finaly in the file "NUnit-NoFrame.xsl" which is located in the same place :
-----------------------------------------
In the line "<td><xsl:value-of select="$testCount"/></td>" just replace "testCount" by "runCount"
Fred
Logged In: YES
user_id=1842282
Originator: NO
Hi,
If you are still interesting in finding the solution :
If the file : toolkit.xsl (which is located in ...\nant\bin)
--------------------------
you just have to replace the line
"<xsl:variable name="successRate" select="$runCount div $total"/>"
by
"<xsl:variable name="successRate" select="($runCount - $failureCount - $ignoreCount) div ($runCount)"/>
"
Be Careful : spaces are important
and in
"<xsl:if test="round($runCount * 200 div $total )!=0">
<span class="covered">
<xsl:attribute name="style">width:<xsl:value-of select="round($runCount * 200 div $total )"/>px</xsl:attribute>
</span>
</xsl:if>
" you just have to replace "runCount" by "successCount" !
Finaly in the file "NUnit-NoFrame.xsl" which is located in the same place :
-----------------------------------------
In the line "<td><xsl:value-of select="$testCount"/></td>" just replace "testCount" by "runCount"
Fred