Author: grobmeier
Date: Wed Jul 29 06:21:11 2009
New Revision: 798788

URL: http://svn.apache.org/viewvc?rev=798788&view=rev
Log:
added code coverage report

Modified:
    incubator/log4php/trunk/pom.xml
    incubator/log4php/trunk/src/site/site.xml

Modified: incubator/log4php/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/pom.xml?rev=798788&r1=798787&r2=798788&view=diff
==============================================================================
--- incubator/log4php/trunk/pom.xml (original)
+++ incubator/log4php/trunk/pom.xml Wed Jul 29 06:21:11 2009
@@ -115,6 +115,7 @@
        
        <properties>
                <surefire.reports>target/surefire-reports</surefire.reports>
+               <coverage.report>target/site/coverage-report</coverage.report>
        </properties>
 
        <build>
@@ -189,6 +190,23 @@
                             <goal>run</goal>
                         </goals>
                     </execution>
+                    
+                    <!-- This execution depends on XDebug -->
+                    <execution>
+                        <phase>pre-site</phase>
+                        <id>codecoverage</id>
+                        <configuration>
+                            <tasks>
+                                <mkdir dir="${coverage.report}" />
+                                <exec executable="phpunit" dir="src/test/php">
+                                    <arg line=" --report 
../../../${coverage.report} ." />
+                                </exec>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
                                </executions>
                        </plugin>
 

Modified: incubator/log4php/trunk/src/site/site.xml
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/site/site.xml?rev=798788&r1=798787&r2=798788&view=diff
==============================================================================
--- incubator/log4php/trunk/src/site/site.xml (original)
+++ incubator/log4php/trunk/src/site/site.xml Wed Jul 29 06:21:11 2009
@@ -45,6 +45,7 @@
           <!-- <item name="Usage" href="/usage.html"/> -->
            <item name="Roadmap" href="/roadmap.html"/>
            <item name="PHPDoc" href="/apidocs/index.html"/>
+           <item name="Code Coverage" href="/coverage-report/index.html"/>
         </menu>
 
         <menu name="Community">


Reply via email to