geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r505218 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report: ./ model/ resources/
Date Fri, 09 Feb 2007 08:56:25 GMT
Author: jdillon
Date: Fri Feb  9 00:56:24 2007
New Revision: 505218

URL: http://svn.apache.org/viewvc?view=rev&rev=505218
Log:
Add page for all non-passing tests

Added:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-tests-overview.vm
  (with props)
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/PackageModel.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy

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=505218&r1=505217&r2=505218
==============================================================================
--- 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
Fri Feb  9 00:56:24 2007
@@ -237,6 +237,11 @@
         renderer.params.model = suiteModel
         renderer.render()
         
+        // Render the non-passing tests overview
+        renderer = createRenderer('non-passing-tests-overview.vm', "non-passing-tests-overview.html")
+        renderer.params.model = suiteModel
+        renderer.render()
+        
         // Render the all iterations frame
         renderer = createRenderer('all-iterations-frame.vm', "all-iterations-frame.html")
         renderer.params.model = suiteModel

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy?view=diff&rev=505218&r1=505217&r2=505218
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/PackageModel.groovy
Fri Feb  9 00:56:24 2007
@@ -50,7 +50,13 @@
     }
     
     Collection getTests() {
-        return aggregateChildModels()
+        def list = []
+        
+        classes.each { model ->
+            list.addAll(model.tests)
+        }
+        
+        return list.sort()
     }
     
     List getTestNames() {

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy?view=diff&rev=505218&r1=505217&r2=505218
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/SuiteModel.groovy
Fri Feb  9 00:56:24 2007
@@ -93,9 +93,13 @@
     }
     
     Collection getTests() {
-        //
-        // TODO:
-        //
+        def list = []
+        
+        packages.each { model ->
+            list.addAll(model.tests)
+        }
+        
+        return list.sort()
     }
     
     List getTestNames() {

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy?view=diff&rev=505218&r1=505217&r2=505218
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/model/TestCaseModel.groovy
Fri Feb  9 00:56:24 2007
@@ -74,5 +74,9 @@
         def shortName = name.substring(name.lastIndexOf('.') + 1, name.size())
         return shortName.replace('.', '/').replace('#', '_') + '.html'
     }
+    
+    String getFullHref() {
+        return name.replace('.', '/').replace('#', '_') + '.html'
+    }
 }
 

Added: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-tests-overview.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-tests-overview.vm?view=auto&rev=505218
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-tests-overview.vm
(added)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-tests-overview.vm
Fri Feb  9 00:56:24 2007
@@ -0,0 +1,45 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+
+##
+## $Id$
+##
+
+<html>
+#pageHeader('Non-passing Tests')
+<body>
+    <h2>Non-passing Tests</h2>
+    
+    <table>
+        #tableHeader(['Test', 'Status', 'Duration'])
+        
+        <tbody>
+            #foreach ($test in $model.tests)
+                #if (!$test.status.passed)
+                    <tr>
+                        <td align="left"><a href="$test.fullHref">$test.name</a></td>
+                        <td align="right">$test.status.text</a></td>
+                        <td align="right">$test.duration</a></td>
+                    </tr>
+                #end
+            #end
+        </tbody>
+    </table>
+</body>
+</html>

Propchange: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-tests-overview.vm
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-tests-overview.vm
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-tests-overview.vm
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message