geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pra...@apache.org
Subject svn commit: r568151 - /geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
Date Tue, 21 Aug 2007 14:52:46 GMT
Author: prasad
Date: Tue Aug 21 07:52:46 2007
New Revision: 568151

URL: http://svn.apache.org/viewvc?rev=568151&view=rev
Log:
* show tests/failures/errors (%) in results

Modified:
    geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java

Modified: geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java?rev=568151&r1=568150&r2=568151&view=diff
==============================================================================
--- geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
(original)
+++ geronimo/server/trunk/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
Tue Aug 21 07:52:46 2007
@@ -445,7 +445,7 @@
         int failuresNum = Integer.parseInt(failures);
         int skippedNum = Integer.parseInt(skipped);
 
-        String pcent = computePercentage(testsNum, errorsNum, failuresNum, skippedNum);
+        String pcent = tests + "/" + errors + "/" + failures + " (" + computePercentage(testsNum,
errorsNum, failuresNum, skippedNum) + "%)";
         return pcent;
     }
 
@@ -502,7 +502,7 @@
 
             Element anchor = document.createElement("a");
             anchor.setAttribute("href", "./" + buildNumber + "/" + suiteName + "/surefire-report.html");
-            Text text = document.createTextNode(pcent + "%");
+            Text text = document.createTextNode(pcent);
             anchor.appendChild(text);
 
             td.appendChild(anchor);



Mime
View raw message