diff options
author | Michal Čihař <michal@cihar.com> | 2014-02-26 14:53:46 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2014-02-26 14:54:08 +0400 |
commit | 6e43046b0817df4f801f72ab6e0561cb4043d7cd (patch) | |
tree | 9cb8d1d0e1e0f8a2b27e96cfea0304ad4b1046d2 /build.xml | |
parent | 0aae267d0623c4a50515a969d82a84b1c25825bd (diff) |
Allow to pass additional args to phpunit
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,6 +5,7 @@ <property name="source_comma_sep" value="."/> <property environment="env"/> <property name="env.PHPUNIT_XML" value="phpunit.xml.dist"/> + <property name="env.PHPUNIT_ARGS" value=""/> <target name="clean" description="Clean up and create artifact directories"> <delete dir="${basedir}/build/api"/> @@ -22,13 +23,13 @@ <target name="phpunit" description="Run unit tests using PHPUnit and generates junit.xml and clover.xml"> <exec executable="phpunit" failonerror="true"> - <arg line="--configuration ${env.PHPUNIT_XML}"/> + <arg line="--configuration ${env.PHPUNIT_XML} ${env.PHPUNIT_ARGS}"/> </exec> </target> <target name="phpunit-nocoverage" description="Run unit tests using PHPUnit and generates junit.xml"> <exec executable="phpunit" failonerror="true"> - <arg line="--configuration phpunit.xml.nocoverage"/> + <arg line="--configuration phpunit.xml.nocoverage ${env.PHPUNIT_ARGS}"/> </exec> </target> |