|
Vincent Massol made changes - 26/May/05 04:31 AM
Move this line: above this line: Otherwise $doc is not yet initialized when you try to access it. Applied thanks. I was not able to reproduce the problem using the existing test suite for the dashboard report...
Vincent Massol made changes - 30/May/05 02:26 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Wim, I'm trying to apply your patch but I don't understand it...
Could you please be more explicit (of course a SCM diff would be the best)? For example the junitpassrate.jelly file contains:
<j:jelly xmlns:j="jelly:core" xmlns:a="jelly:ant" xmlns:x="jelly:xml" xmlns:u="jelly:util">
<u:file var="artifactAsFile" name="${maven.dashboard.aggregator.junittests.artifact}"/>
<j:choose>
<j:when test="${artifactAsFile.exists()}">
<j:choose>
<x:set var="nbTests" select="sum($doc/testsuites/testsuite/@tests)"/>
<j:when test="${nbTests != 0}">
<x:parse var="doc" xml="${artifactAsFile}"/>
<x:expr select="floor(100 - 100 * (sum($doc/testsuites/testsuite/@failures) + sum($doc/testsuites/testsuite/@errors)) div sum($doc/testsuites/testsuite/@tests))"/>
%
</j:when>
<j:otherwise>
<j:expr value="-"/>
</j:otherwise>
</j:choose>
</j:when>
<j:otherwise>
<j:expr value="-"/>
</j:otherwise>
</j:choose>
</j:jelly>
What do you want to modify?
Thanks