Menu

#6 invalid percentage

open
nobody
None
9
2004-02-02
2004-02-02
Jan Simons
No

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)

Discussion

  • Jan Simons

    Jan Simons - 2004-02-02
    • priority: 5 --> 9
     
  • Fred

    Fred - 2007-07-27

    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

     
  • Fred

    Fred - 2007-07-27

    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

     

Log in to post a comment.

MongoDB Logo MongoDB