Browse Source

Set "junit.haltonfailure = on" in build-local.properties to make JUnit tests halt immediately if an test failure is encountered.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@411712 13f79535-47bb-0310-9956-ffa450edef68
pull/25/head
Jeremias Maerki 18 years ago
parent
commit
ff8b460bc3
1 changed files with 9 additions and 7 deletions
  1. 9
    7
      build.xml

+ 9
- 7
build.xml View File

<property name="javac.fork" value="no"/> <property name="javac.fork" value="no"/>


<property name="junit.fork" value="on"/> <property name="junit.fork" value="on"/>
<property name="junit.haltonfailure" value="off"/>


<property name="javadoc.packages" value="org.apache.fop.*"/> <property name="javadoc.packages" value="org.apache.fop.*"/>


<target name="junit-transcoder" depends="junit-compile" description="Runs FOP's JUnit transcoder tests" if="junit.present"> <target name="junit-transcoder" depends="junit-compile" description="Runs FOP's JUnit transcoder tests" if="junit.present">
<echo message="Running basic functionality tests for fop-transcoder.jar"/> <echo message="Running basic functionality tests for fop-transcoder.jar"/>
<junit haltonerror="no" fork="${junit.fork}">
<junit haltonfailure="${junit.haltonfailure}" fork="${junit.fork}">
<sysproperty key="basedir" value="${basedir}"/> <sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/> <sysproperty key="jawa.awt.headless" value="true"/>
<formatter type="brief" usefile="false"/> <formatter type="brief" usefile="false"/>
previous test block succeeded it indicates that the packaging of the allinone previous test block succeeded it indicates that the packaging of the allinone
JAR needs to be updated. JAR needs to be updated.
--> -->
<junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<junit haltonfailure="${junit.haltonfailure}" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/> <sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/> <sysproperty key="jawa.awt.headless" value="true"/>
<formatter type="brief" usefile="false"/> <formatter type="brief" usefile="false"/>


<target name="junit-basic" depends="junit-compile" description="Runs FOP's JUnit basic tests" if="junit.present"> <target name="junit-basic" depends="junit-compile" description="Runs FOP's JUnit basic tests" if="junit.present">
<echo message="Running basic functionality tests for fop.jar"/> <echo message="Running basic functionality tests for fop.jar"/>
<junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<echo message="${junit.haltonfailure}"/>
<junit haltonfailure="${junit.haltonfailure}" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/> <sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/> <sysproperty key="jawa.awt.headless" value="true"/>
<formatter type="brief" usefile="false"/> <formatter type="brief" usefile="false"/>


<target name="junit-layout-standard" depends="junit-compile" if="junit.present" description="Runs FOP's standard JUnit layout tests"> <target name="junit-layout-standard" depends="junit-compile" if="junit.present" description="Runs FOP's standard JUnit layout tests">
<echo message="Running standard layout engine tests"/> <echo message="Running standard layout engine tests"/>
<junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<junit haltonfailure="${junit.haltonfailure}" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/> <sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/> <sysproperty key="jawa.awt.headless" value="true"/>
<sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/> <sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/>


<target name="junit-layout-hyphenation" depends="hyphenation-present, junit-compile" if="hyphenation.present" description="Runs FOP's JUnit hyphenation layout tests"> <target name="junit-layout-hyphenation" depends="hyphenation-present, junit-compile" if="hyphenation.present" description="Runs FOP's JUnit hyphenation layout tests">
<echo message="Running hyphenation layout engine tests"/> <echo message="Running hyphenation layout engine tests"/>
<junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<junit haltonfailure="${junit.haltonfailure}" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/> <sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/> <sysproperty key="jawa.awt.headless" value="true"/>
<sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/> <sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/>
<target name="junit-fotree" depends="junit-compile" description="Runs FOP's FO tree JUnit tests" if="junit.present"> <target name="junit-fotree" depends="junit-compile" description="Runs FOP's FO tree JUnit tests" if="junit.present">
<echo message="Running fo tree tests"/> <echo message="Running fo tree tests"/>
<junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<junit haltonfailure="${junit.haltonfailure}" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/> <sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/> <sysproperty key="jawa.awt.headless" value="true"/>
<sysproperty key="fop.layoutengine.disabled" value="${fotree.disabled}"/> <sysproperty key="fop.layoutengine.disabled" value="${fotree.disabled}"/>


<target name="junit-intermediate-format" depends="junit-compile" description="Runs FOP's intermediate format JUnit tests" if="xmlunit.present"> <target name="junit-intermediate-format" depends="junit-compile" description="Runs FOP's intermediate format JUnit tests" if="xmlunit.present">
<echo message="Running intermediate format tests"/> <echo message="Running intermediate format tests"/>
<junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<junit haltonfailure="${junit.haltonfailure}" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/> <sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/> <sysproperty key="jawa.awt.headless" value="true"/>
<sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/> <sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/>

Loading…
Cancel
Save