I'm now using the Unix diff built in to Apache Jakarta Commons JRCS
(which I found on suigeneris.org, not apache.org) in order to bulletproof the Tibetan Converter tests. They used to fail due to nondeterminism in the Java RTF writer; they should no longer fail. I've also changed it so that the Tibetan Converter tests run in headless mode, which means that they'll run on the nightly builds server.
This commit is contained in:
parent
06fb77a82b
commit
1c29566aee
10 changed files with 41 additions and 1032 deletions
|
@ -32,17 +32,31 @@
|
|||
|
||||
|
||||
<!-- This creates output files TEST* in the Jskad/ directory. -->
|
||||
<target name="run-all-junit-tests"
|
||||
<target name="run-headed-junit-tests"
|
||||
description="Assuming that compilation of appropriate classes has been done, this target runs all the JUnit tests in the project.">
|
||||
<junit fork="no" printsummary="yes" haltonfailure="no" haltonerror="no">
|
||||
<junit fork="no" printsummary="yes" haltonfailure="yes" haltonerror="no">
|
||||
<!-- we don't halt on error because you get an error when you run
|
||||
on a headless display -->
|
||||
<classpath>
|
||||
<pathelement location="${junitbin}"/>
|
||||
<path refid="entire.class.path"/>
|
||||
</classpath>
|
||||
<formatter type="xml"/><!-- If not XML, then 'ant -buildfile
|
||||
build.xml check-report' will fail. -->
|
||||
<test name="org.thdl.util.RTFFixerInputStreamTest"/>
|
||||
<test name="org.thdl.tib.input.DuffPaneTest"/>
|
||||
</junit>
|
||||
</target>
|
||||
<target name="run-headless-junit-tests"
|
||||
description="Assuming that compilation of appropriate classes has been done, this target runs all the JUnit tests in the project.">
|
||||
<junit fork="no" printsummary="yes" haltonfailure="yes" haltonerror="yes">
|
||||
<classpath>
|
||||
<pathelement location="${junitbin}"/>
|
||||
<path refid="entire.class.path"/>
|
||||
</classpath>
|
||||
<formatter type="xml"/><!-- If not XML, then 'ant -buildfile
|
||||
build.xml check-report' will fail. -->
|
||||
<sysproperty key="java.awt.headless" value="true"/>
|
||||
<test name="org.thdl.util.RTFFixerInputStreamTest"/>
|
||||
<test name="org.thdl.util.ThdlLazyExceptionTest"/>
|
||||
<test name="org.thdl.util.TrieTest"/>
|
||||
<test name="org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIETest"/>
|
||||
|
@ -55,7 +69,7 @@
|
|||
|
||||
<!-- Note the odd dependencies. -->
|
||||
<target name="make-nightly-report"
|
||||
description="Creates an HTML report about the status of the tests; is dependent (via build.xml) on target `run-all-junit-tests'.">
|
||||
description="Creates an HTML report about the status of the tests; is dependent (via build.xml) on targets that execute JUnit Ant tasks.">
|
||||
<junitreport todir="${dist}">
|
||||
<fileset dir=".">
|
||||
<include name="TEST-*.xml"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue