Tell ant to fail the build when a php unit test fails
This commit is contained in:
@@ -241,7 +241,7 @@
|
|||||||
|
|
||||||
<target name="phpunit" unless="phpunit.done" depends="phpunit-prepare"
|
<target name="phpunit" unless="phpunit.done" depends="phpunit-prepare"
|
||||||
description="Run unit tests with PHPUnit">
|
description="Run unit tests with PHPUnit">
|
||||||
<exec executable="${phpunit}" resultproperty="result.phpunit"
|
<exec executable="${phpunit}" failonerror="true" resultproperty="result.phpunit"
|
||||||
taskname="phpunit">
|
taskname="phpunit">
|
||||||
<arg value="--configuration" />
|
<arg value="--configuration" />
|
||||||
<arg path="${basedir}/phpunit.xml" />
|
<arg path="${basedir}/phpunit.xml" />
|
||||||
|
|||||||
Reference in New Issue
Block a user