1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

Treat JUnit errors as failures to increase visibility

Before this change `cd app; ant test` would return "BUILD SUCCESS"
even when unit tests were returning errors.
This commit is contained in:
Thomas L. Kjeldsen 2020-01-31 16:00:04 +01:00
parent 0dbff59b13
commit ac6688de59

View File

@ -109,7 +109,7 @@
<fileset dir="test" includes="**/*.pac" /> <fileset dir="test" includes="**/*.pac" />
</copy> </copy>
<junit printsummary="yes" dir="${work.dir}" fork="true"> <junit printsummary="yes" dir="${work.dir}" fork="true" showoutput="yes" failureproperty="test.failed">
<jvmarg value="-Djava.library.path=${java.additional.library.path}"/> <jvmarg value="-Djava.library.path=${java.additional.library.path}"/>
<jvmarg value="-DWORK_DIR=."/> <jvmarg value="-DWORK_DIR=."/>
<jvmarg value="-ea"/> <jvmarg value="-ea"/>
@ -131,6 +131,7 @@
</batchtest> </batchtest>
</junit> </junit>
<fail if="test.failed"/>
</target> </target>
<target name="build" depends="compile" description="Build PDE"> <target name="build" depends="compile" description="Build PDE">