geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r505251 - in /geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report: ./ resources/ resources/boilerplate/ resources/boilerplate/images/
Date Fri, 09 Feb 2007 11:21:25 GMT
Author: jdillon
Date: Fri Feb  9 03:21:21 2007
New Revision: 505251

URL: http://svn.apache.org/viewvc?view=rev&rev=505251
Log:
Update style a bit, not sure if is any better, still needs someone's love to get it pleasing
to the eye
Added barGraph for success rate, which along with the icons should help find errors

Added:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/images/spacer.gif
  (with props)
Modified:
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/PageRenderer.groovy
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/PageRenderer.groovy
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/PageRenderer.groovy?view=diff&rev=505251&r1=505250&r2=505251
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/PageRenderer.groovy
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/PageRenderer.groovy
Fri Feb  9 03:21:21 2007
@@ -30,6 +30,8 @@
  */
 class PageRenderer
 {
+    private static GroovyShell shell = new GroovyShell()
+    
     private Template template
     
     private File file
@@ -47,6 +49,12 @@
     
     def render() {
         template.render(file)
+    }
+    
+    def eval(String expr) {
+        assert expr
+        
+        return shell.evaluate(expr)
     }
 }
 

Added: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/images/spacer.gif
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/images/spacer.gif?view=auto&rev=505251
==============================================================================
Binary file - no diff available.

Propchange: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/images/spacer.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css?view=diff&rev=505251&r1=505250&r2=505251
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/boilerplate/stylesheet.css
Fri Feb  9 03:21:21 2007
@@ -22,8 +22,8 @@
  */
 
 body {
-	background-color: #fff;
-	font-family: Arial, Helvetica, sans-serif;
+	font-family: verdana, arial, sans-serif;
+    background-color: #ffffff;
 }
 
 a:link {
@@ -37,20 +37,22 @@
  color: #f30 !important;
 }
 
-ul, li{
+ul, li {
 	list-style-type: none;
 	margin: 0;
 	padding: 0;
+    font-size: 10px;
 }
 
-table td {
-	padding: 3px;
-	border: 1px solid #000;
-}
 table {
-	width: 100%;
-	border: 1px solid #000;
-	border-collapse: collapse;
+	font-size: 10px;
+    border-collapse: collapse;
+    width: 100%;
+}
+
+table td {
+    padding: 3px;
+    border: 1px solid #000;
 }
 
 div.overview {
@@ -113,4 +115,26 @@
 hr {
 	height: 1px;
 	color: #000;
+}
+
+/* Bar Graph */
+
+table.barGraph {
+    border: 0px;
+    width: 200px;
+}
+
+td.passSegment {
+    padding: 0px;
+	font-size: 2px;
+    background: #00df00;
+    border-left: #9c9c9c 1px solid;
+    border-top: #9c9c9c 1px solid;
+    border-bottom: #9c9c9c 1px solid;
+}
+td.failSegment {
+    padding: 0px;
+	font-size: 2px;
+    background: #df0000;
+    border: #9c9c9c 1px solid;
 }

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm?view=diff&rev=505251&r1=505250&r2=505251
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/class-summary.vm
Fri Feb  9 03:21:21 2007
@@ -50,7 +50,7 @@
             </tr>
             <tr>
                 <td>Success Rate</td>
-                <td>$model.successRate</td>
+                <td width="210">#barGraph($model.successRate)</td>
             </tr>
             <tr>
                 <td>Duration</td>

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm?view=diff&rev=505251&r1=505250&r2=505251
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-detail.vm
Fri Feb  9 03:21:21 2007
@@ -50,7 +50,7 @@
             </tr>
             <tr>
                 <td>Success Rate</td>
-                <td>$model.successRate</td>
+                <td width="210">#barGraph($model.successRate)</td>
             </tr>
             <tr>
                 <td>Duration</td>

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm?view=diff&rev=505251&r1=505250&r2=505251
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/iteration-overview.vm
Fri Feb  9 03:21:21 2007
@@ -37,7 +37,7 @@
                     <td align="center">#icon($iter.statusIcon)</td>
                     <td align="left"><a href="$iter.href">$iter.name</a></td>
                     <td align="right">$iter.count</td>
-                    <td align="right">$iter.successRate</td>
+                    <td align="center" width="210">#barGraph($iter.successRate)</td>
                     <td align="right">$iter.duration</td>
                 </tr>
             #end

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm?view=diff&rev=505251&r1=505250&r2=505251
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/macros.vm
Fri Feb  9 03:21:21 2007
@@ -32,6 +32,10 @@
     <img src="${baseURI}/images/$filename" border="0"/>
 #end
 
+#macro (spacer $height $width)
+    <img src="${baseURI}/images/spacer.gif" border="0" height="$height" width="$width"/>
+#end
+
 #macro (topNavBar)
     <table>
         <tbody>
@@ -66,6 +70,30 @@
                     <td>$map.get($key)</td>
                 </tr>
             #end
+        </tbody>
+    </table>
+#end
+
+#macro (barGraph $successRate)
+    #set ($passBarSize = $helper.eval("(int) $successRate * 2"))
+    #set ($failBarSize = 200 - $passBarSize)
+    
+    <!--
+    Rate: $successRate
+    Pass: $passBarSize
+    Fail: $failBarSize
+    -->
+    
+    <table width="200" height="15" cellpadding="0" cellspacing="0" border="0" class="barGraph">
+        <tbody>
+            <tr>
+                #if ($passBarSize > 0)
+                    <td class="passSegment">#spacer(1 $passBarSize)</td>
+                #end
+                #if ($failBarSize > 0)
+                    <td class="failSegment">#spacer(1 $failBarSize)</td>
+                #end
+            </tr>
         </tbody>
     </table>
 #end

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm?view=diff&rev=505251&r1=505250&r2=505251
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-overview.vm
Fri Feb  9 03:21:21 2007
@@ -35,9 +35,9 @@
             #foreach ($pkg in $model.packages)
                 <tr>
                     <td align="center">#icon($pkg.statusIcon)</td>
-                    <td align="left"><a href="$pkg.fullHref">$pkg.name</a></td>
+                    <td align="left"><a href="$pkg.href">$pkg.name</a></td>
                     <td align="right">$pkg.count</td>
-                    <td align="right">$pkg.successRate</td>
+                    <td align="center" width="210">#barGraph($pkg.successRate)</td>
                     <td align="right">$pkg.duration</td>
                 </tr>
             #end

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm?view=diff&rev=505251&r1=505250&r2=505251
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/package-summary.vm
Fri Feb  9 03:21:21 2007
@@ -50,7 +50,7 @@
             </tr>
             <tr>
                 <td>Success Rate</td>
-                <td>$model.successRate</td>
+                <td width="210">#barGraph($model.successRate)</td>
             </tr>
             <tr>
                 <td>Duration</td>
@@ -70,7 +70,7 @@
                     <td align="center">#icon($clazz.statusIcon)</td>
                     <td align="left"><a href="$clazz.href">$clazz.name</a></td>
                     <td align="right">$clazz.count</td>
-                    <td align="right">$clazz.successRate</td>
+                    <td align="center" width="210">#barGraph($clazz.successRate)</td>
                     <td align="right">$clazz.duration</td>
                 </tr>
             #end



Mime
View raw message