geronimo-scm mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=505261
Log:
Add color to the status text
Fixed up success rate graphs

Modified:
    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/non-passing-overview.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
    geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/testcase-detail.vm

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=505261&r1=505260&r2=505261
==============================================================================
--- 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:54:01 2007
@@ -117,6 +117,23 @@
 	color: #000;
 }
 
+/* Test Status */
+
+span.testPassed {
+    font-weight: bold;
+    color: #009900; /* medium green */
+}
+
+span.testFailed {
+    font-weight: bold;
+    color: #FF0000; /* red */
+}
+
+span.testError {
+    font-weight: bold;
+    color: #660000; /* dark red */
+}
+
 /* Bar Graph */
 
 table.barGraph {

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=505261&r1=505260&r2=505261
==============================================================================
--- 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:54:01 2007
@@ -50,7 +50,7 @@
             </tr>
             <tr>
                 <td>Success Rate</td>
-                <td width="210">#barGraph($model.successRate)</td>
+                <td align="center" width="210">#barGraph($model.successRate)</td>
             </tr>
             <tr>
                 <td>Duration</td>
@@ -67,9 +67,9 @@
         <tbody>
             #foreach ($test in $model.tests)
                 <tr>
-                    <td align="center">#icon($test.statusIcon)</td>
+                    <td align="center" width="20">#icon($test.statusIcon)</td>
                     <td align="left"><a href="$test.href">$test.testName</a></td>
-                    <td align="right">$test.status.text</a></td>
+                    <td align="center">#testStatus($test)</a></td>
                     <td align="right">$test.duration</a></td>
                 </tr>
             #end

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=505261&r1=505260&r2=505261
==============================================================================
--- 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:54:01 2007
@@ -50,7 +50,7 @@
             </tr>
             <tr>
                 <td>Success Rate</td>
-                <td width="210">#barGraph($model.successRate)</td>
+                <td align="center" width="210">#barGraph($model.successRate)</td>
             </tr>
             <tr>
                 <td>Duration</td>
@@ -67,10 +67,10 @@
         <tbody>
             #foreach ($pkg in $model.packages)
                 <tr>
-                    <td align="center">#icon($pkg.statusIcon)</td>
+                    <td align="center" width="20">#icon($pkg.statusIcon)</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/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=505261&r1=505260&r2=505261
==============================================================================
--- 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:54:01 2007
@@ -34,7 +34,7 @@
         <tbody>
             #foreach ($iter in $model.iterations)
                 <tr>
-                    <td align="center">#icon($iter.statusIcon)</td>
+                    <td align="center" width="20">#icon($iter.statusIcon)</td>
                     <td align="left"><a href="$iter.href">$iter.name</a></td>
                     <td align="right">$iter.count</td>
                     <td align="center" width="210">#barGraph($iter.successRate)</td>

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=505261&r1=505260&r2=505261
==============================================================================
--- 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:54:01 2007
@@ -74,15 +74,20 @@
     </table>
 #end
 
+#macro (testStatus $test)
+    #if ($test.status.passed)
+        #set ($style = 'testPassed')
+    #elseif ($test.status.failed)
+        #set ($style = 'testFailed')
+    #elseif ($test.status.error)
+        #set ($style = 'testError')
+    #end
+    <span class="$style">$test.status.text</span>
+#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>

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-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-overview.vm?view=diff&rev=505261&r1=505260&r2=505261
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-overview.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/non-passing-overview.vm
Fri Feb  9 03:54:01 2007
@@ -35,9 +35,9 @@
             #foreach ($test in $model.tests)
                 #if (!$test.status.passed)
                     <tr>
-                        <td align="center">#icon($test.statusIcon)</td>
+                        <td align="center" width="20">#icon($test.statusIcon)</td>
                         <td align="left"><a href="$test.fullHref">$test.name</a></td>
-                        <td align="right">$test.status.text</a></td>
+                        <td align="center">#testStatus($test)</a></td>
                         <td align="right">$test.duration</a></td>
                     </tr>
                 #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=505261&r1=505260&r2=505261
==============================================================================
--- 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:54:01 2007
@@ -34,7 +34,7 @@
         <tbody>
             #foreach ($pkg in $model.packages)
                 <tr>
-                    <td align="center">#icon($pkg.statusIcon)</td>
+                    <td align="center" width="20">#icon($pkg.statusIcon)</td>
                     <td align="left"><a href="$pkg.href">$pkg.name</a></td>
                     <td align="right">$pkg.count</td>
                     <td align="center" width="210">#barGraph($pkg.successRate)</td>

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=505261&r1=505260&r2=505261
==============================================================================
--- 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:54:01 2007
@@ -50,7 +50,7 @@
             </tr>
             <tr>
                 <td>Success Rate</td>
-                <td width="210">#barGraph($model.successRate)</td>
+                <td align="center" width="210">#barGraph($model.successRate)</td>
             </tr>
             <tr>
                 <td>Duration</td>
@@ -67,7 +67,7 @@
         <tbody>
             #foreach ($clazz in $model.classes)
                 <tr>
-                    <td align="center">#icon($clazz.statusIcon)</td>
+                    <td align="center" width="20">#icon($clazz.statusIcon)</td>
                     <td align="left"><a href="$clazz.href">$clazz.name</a></td>
                     <td align="right">$clazz.count</td>
                     <td align="center" width="210">#barGraph($clazz.successRate)</td>
@@ -86,9 +86,9 @@
             #foreach ($clazz in $model.classes)
                 #foreach ($test in $clazz.tests)
                     <tr>
-                        <td align="center">#icon($test.statusIcon)</td>
+                        <td align="center" width="20">#icon($test.statusIcon)</td>
                         <td align="left"><a href="$test.href">$test.name</a></td>
-                        <td align="right">$test.status.text</a></td>
+                        <td align="center">#testStatus($test)</a></td>
                         <td align="right">$test.duration</a></td>
                     </tr>
                 #end

Modified: geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/testcase-detail.vm
URL: http://svn.apache.org/viewvc/geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/testcase-detail.vm?view=diff&rev=505261&r1=505260&r2=505261
==============================================================================
--- geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/testcase-detail.vm
(original)
+++ geronimo/sandbox/build-support/libraries/system/1/groovy/gbuild/config/projects/Geronimo_CTS/report/resources/testcase-detail.vm
Fri Feb  9 03:54:01 2007
@@ -59,7 +59,7 @@
             
             <tr>
                 <td>Status</td>
-                <td>$testCase.status.text</td>
+                <td>#testStatus($test)</td>
             </tr>
             <tr>
                 <td>Passed</td>



Mime
View raw message