Author: gmcdonald
Date: Wed Dec 30 08:41:14 2009
New Revision: 894567
URL: http://svn.apache.org/viewvc?rev=894567&view=rev
Log:
Add unit tests back in
Modified:
incubator/log4php/trunk/pom.xml
Modified: incubator/log4php/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/log4php/trunk/pom.xml?rev=894567&r1=894566&r2=894567&view=diff
==============================================================================
--- incubator/log4php/trunk/pom.xml (original)
+++ incubator/log4php/trunk/pom.xml Wed Dec 30 08:41:14 2009
@@ -234,7 +234,29 @@
</configuration>
</execution>
-
+ <!--+
+ | PHPUnit (and XDebug for the coverage report) must be
installed for this execution
+ +-->
+ <execution>
+ <id>test</id>
+ <phase>test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <mkdir dir="${surefire.reports}" />
+ <mkdir dir="${coverage.report}" />
+ <exec executable="phpunit" dir="src/test/php">
+ <arg line=" --log-junit
../../../${surefire.reports}/phpunit-testresults.xml" />
+ <arg line=" --coverage-html
../../../${coverage.report}" />
+ </exec>
+ <xslt
in="${surefire.reports}/phpunit-testresults.xml"
out="${surefire.reports}/xslt.info"
style="src/test/config/phpunit_to_surefire.xslt" processor="trax">
+ <param name="outputDir"
expression="${surefire.reports}" />
+ </xslt>
+ </tasks>
+ </configuration>
+ </execution>
</executions>
</plugin>