geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r535567 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report: ReportGenerator.groovy model/SectionModel.groovy resources/overview-summary.vm
Date Sat, 05 May 2007 22:10:00 GMT
Author: jdillon
Date: Sat May  5 15:10:00 2007
New Revision: 535567

URL: http://svn.apache.org/viewvc?view=rev&rev=535567
Log:
Add the section overview to the main overview

Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SectionModel.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/overview-summary.vm

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy?view=diff&rev=535567&r1=535566&r2=535567
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/ReportGenerator.groovy
Sat May  5 15:10:00 2007
@@ -249,13 +249,6 @@
         
         logMemoryUsage()
         
-        //
-        // HACK: Start of section muck...
-        //
-        def sections = suiteModel.sections.each {
-            println "$it : $it.passCount / $it.failureCount / $it.errorCount :: $it.duration"
-        }
-        
         log.info "Rendering overview bits"
         renderWithSuite('iteration-overview.vm', "iteration-overview.html")
         renderWithSuite('package-overview.vm', "package-overview.html")

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SectionModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SectionModel.groovy?view=diff&rev=535567&r1=535566&r2=535567
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SectionModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SectionModel.groovy
Sat May  5 15:10:00 2007
@@ -93,6 +93,10 @@
     }
     
     double getSuccessRate() {
+        if (count == 0) {
+            return 0
+        }
+        
         return passCount * 100 / count
     }
     
@@ -104,7 +108,10 @@
     }
     
     String getStatusIcon() {
-        if (passed) {
+        if (count == 0) {
+            return 'forbidden.gif'
+        }
+        else if (passed) {
             return 'icon_success_sml.gif'
         }
         else if (errorCount > 0) {

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/overview-summary.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/overview-summary.vm?view=diff&rev=535567&r1=535566&r2=535567
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/overview-summary.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/overview-summary.vm
Sat May  5 15:10:00 2007
@@ -72,6 +72,24 @@
         </tbody>
     </table>
     
+    <h2>Sections</h2>
+    
+    <table>
+        <colgroup>
+            <col/>
+            <col width="99%"><col>
+        </colgroup>
+        
+        #tableHeader(['', 'Section', 'Tests', 'Success Rate', 'Duration'])
+        
+        <tbody>
+            #resetRowStyle()
+            #foreach ($section in $model.sections)
+                #subGroupSummaryItem($section)
+            #end
+        </tbody>
+    </table>
+    
     <h2>Assembly Details</h2>
     
     ##



Mime
View raw message