geronimo-scm mailing list archives

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

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

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

Modified: geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java?rev=568153&r1=568152&r2=568153&view=diff
==============================================================================
--- geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
(original)
+++ geronimo/server/branches/2.0/maven-plugins/testsuite-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/testsuite/ResultsSummaryMojo.java
Tue Aug 21 07:57:52 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