Tell ant to fail the build when a php unit test fails

This commit is contained in:
Marc-André Kolly 2019-07-29 16:29:39 +02:00
parent 2489658353
commit ede19946c2
No known key found for this signature in database
GPG Key ID: 1A41ACFD27AABF1F

View File

@ -241,7 +241,7 @@
<target name="phpunit" unless="phpunit.done" depends="phpunit-prepare"
description="Run unit tests with PHPUnit">
<exec executable="${phpunit}" resultproperty="result.phpunit"
<exec executable="${phpunit}" failonerror="true" resultproperty="result.phpunit"
taskname="phpunit">
<arg value="--configuration" />
<arg path="${basedir}/phpunit.xml" />