aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2011-11-18 17:08:20 +0000
committerVincent Hennebert <vhennebert@apache.org>2011-11-18 17:08:20 +0000
commit07f082ad3d6afb717e55972ae0c4a64c5d1e53b4 (patch)
treeec9ee565983d13ee7154c8645a9ebf68b93ed96a /build.xml
parent3d2b970d8e559003aea495c0e2a941d0c7d81160 (diff)
downloadxmlgraphics-fop-07f082ad3d6afb717e55972ae0c4a64c5d1e53b4.tar.gz
xmlgraphics-fop-07f082ad3d6afb717e55972ae0c4a64c5d1e53b4.zip
Bugzilla #52151: added ant script to get JaCoCo code coverage
Patch by Mehdi Houshmand, applied with changes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1203749 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index 90ae3c6ea..a75b40619 100644
--- a/build.xml
+++ b/build.xml
@@ -151,7 +151,7 @@ list of possible build targets.
<property name="javac.source" value="1.5"/>
<property name="javac.target" value="1.5"/>
<property name="javac.fork" value="no"/>
- <property name="junit.fork" value="on"/>
+ <property name="junit.fork" value="yes"/>
<property name="junit.haltonfailure" value="off"/>
<property name="javadoc.packages" value="org.apache.fop.*"/>
<property name="src.dir" value="${basedir}/src"/>
@@ -784,7 +784,8 @@ list of possible build targets.
</sequential>
</macrodef>
<target name="junit-all" depends="junit-compile, junit-transcoder, junit-layout-hyphenation, setup-xml-schema" description="Runs FOP's JUnit basic tests" if="junit.present">
- <junit dir="${basedir}" haltonfailure="yes" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
+ <junit dir="${basedir}" haltonfailure="yes" fork="${junit.fork}" forkmode="once"
+ errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="jawa.awt.headless" value="true"/>
<formatter type="brief" usefile="false"/>
<formatter type="plain" usefile="true"/>
@@ -807,8 +808,8 @@ list of possible build targets.
<junit-run title="standard layout engine" testsuite="org.apache.fop.layoutengine.LayoutEngineTestSuite" outfile="TEST-layoutengine-standard"/>
</target>
<target name="junit-layout-hyphenation" depends="hyphenation-present, junit-compile" if="hyphenation.present" description="Runs FOP's JUnit hyphenation layout tests">
- <property name="fop.layoutengine.testset" value="hyphenation"/>
- <junit-run title="hyphenation layout engine" testsuite="org.apache.fop.layoutengine.LayoutEngineTestSuite" outfile="TEST-layoutengine-hyphenation"/>
+ <junit-run title="hyphenation layout engine" testsuite="org.apache.fop.layoutengine.HyphenationLayoutTestCase"
+ outfile="TEST-layoutengine-hyphenation"/>
</target>
<target name="junit-layout" depends="junit-layout-standard, junit-layout-hyphenation" description="Runs all FOP's JUnit layout tests"/>
<target name="junit-fotree" depends="junit-compile" description="Runs FOP's FO tree JUnit tests" if="junit.present">
@@ -851,7 +852,8 @@ list of possible build targets.
<junit-run title="render-pdf" testsuite="org.apache.fop.render.pdf.RenderPDFTestSuite" outfile="TEST-render-pdf"/>
</target>
<target name="junit-reduced" depends="junit-userconfig, junit-basic, junit-transcoder, junit-text-linebreak, junit-fotree, junit-render-pdf"/>
- <target name="junit" depends="junit-all" description="Runs all of FOP's JUnit tests" if="junit.present">
+ <target name="junit" depends="junit-all" description="Runs all of FOP's JUnit tests"
+ if="junit.present">
<fail><condition><or><isset property="fop.junit.error"/><isset property="fop.junit.failure"/><not><isset property="hyphenation.present"/></not></or></condition>
NOTE:
**************************************************************************