You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2016/12/11 20:58:16 UTC
svn commit: r1773636 - /poi/trunk/build.xml
Author: centic
Date: Sun Dec 11 20:58:16 2016
New Revision: 1773636
URL: http://svn.apache.org/viewvc?rev=1773636&view=rev
Log:
Fail after running tests if halt.on.test.failure is set and tests are failing
Modified:
poi/trunk/build.xml
Modified: poi/trunk/build.xml
URL: http://svn.apache.org/viewvc/poi/trunk/build.xml?rev=1773636&r1=1773635&r2=1773636&view=diff
==============================================================================
--- poi/trunk/build.xml (original)
+++ poi/trunk/build.xml Sun Dec 11 20:58:16 2016
@@ -1276,6 +1276,8 @@ under the License.
</jacoco:coverage>
<delete file="${main.testokfile}"/>
<antcall target="-test-main-write-testfile"/>
+
+ <fail if="main.test.failed" message="At least one test failed"/>
</target>
<target name="test-report" depends="init">
@@ -1385,6 +1387,8 @@ under the License.
</jacoco:coverage>
<delete file="${scratchpad.testokfile}"/>
<antcall target="-test-scratchpad-write-testfile"/>
+
+ <fail if="scratchpad.test.failed" message="At least one test failed"/>
</target>
<target name="-test-scratchpad-write-testfile" unless="scratchpad.test.failed">
@@ -1428,6 +1432,9 @@ under the License.
</batchtest>
</junit>
</jacoco:coverage>
+
+ <fail if="ooxml.test.failed" message="At least one test failed"/>
+
<jacoco:coverage enabled="${coverage.enabled}" excludes="${coverage.excludes}" destfile="build/jacoco-@{type}-xmlsec.exec">
<junit printsummary="yes" fork="yes" forkmode="once" haltonfailure="${halt.on.test.failure}"
failureproperty="ooxml.xmlsec.test.failed">
@@ -1449,6 +1456,8 @@ under the License.
</batchtest>
</junit>
</jacoco:coverage>
+
+ <fail if="ooxml.xmlsec.test.failed" message="At least one test failed"/>
</sequential>
</macrodef>
@@ -1548,6 +1557,8 @@ under the License.
</jacoco:coverage>
<delete file="${integration.testokfile}"/>
<antcall target="-test-integration-write-testfile"/>
+
+ <fail if="integration.test.failed" message="At least one test failed"/>
</target>
<target name="-test-integration-write-testfile" unless="integration.test.failed">
@@ -1641,6 +1652,8 @@ under the License.
</jacoco:coverage>
<delete file="${excelant.testokfile}"/>
<antcall target="-test-excelant-write-testfile"/>
+
+ <fail if="excelant.test.failed" message="At least one test failed"/>
</target>
<!-- GENERATE DOCUMENTATION -->
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org