]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
And phpunit with html coverage to ant 1165/head
authorJeremy <jeremy.benoist@gmail.com>
Sat, 28 Mar 2015 11:01:48 +0000 (12:01 +0100)
committerNicolas LÅ“uillet <nicolas@loeuillet.org>
Wed, 1 Apr 2015 19:32:02 +0000 (21:32 +0200)
Launching `ant phpunit` will now generate HTML Coverage

build.xml

index cd2dfa3c86c33effd25281fa67ea3e6aa0804c0f..30ed2fa1d34b08ef9c4b238fca0035872a6db071 100644 (file)
--- a/build.xml
+++ b/build.xml
             <arg value="--env=test"/>
         </exec>
     </target>
+
+    <target name="phpunit" description="Run unit tests with PHPUnit + HTML Coverage">
+        <exec executable="phpunit" failonerror="true">
+            <arg value="--coverage-html"/>
+            <arg value="build/coverage"/>
+        </exec>
+    </target>
 </project>