mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Separate out test-unit and test-blackbox targets for running different sorts of tests
git-svn-id: https://zxing.googlecode.com/svn/trunk@369 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
9eceb0593e
commit
df25fc1389
|
@ -46,7 +46,7 @@
|
|||
<jar jarfile="core.jar" basedir="build" level="9"/>
|
||||
</target>
|
||||
|
||||
<target name="test" depends="init,build">
|
||||
<target name="build-test" depends="init,build">
|
||||
<fail message="Please build 'javase' first">
|
||||
<condition>
|
||||
<not>
|
||||
|
@ -65,6 +65,9 @@
|
|||
<pathelement location="lib/junit.jar"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="test-blackbox" depends="build-test">
|
||||
<junit printsummary="on" haltonfailure="on" haltonerror="on" fork="true" dir=".">
|
||||
<formatter type="plain" usefile="false"/>
|
||||
<classpath>
|
||||
|
@ -78,13 +81,35 @@
|
|||
</assertions>
|
||||
<batchtest>
|
||||
<fileset dir="test/src">
|
||||
<include name="**/*TestCase.java"/>
|
||||
<include name="**/*BlackBox*TestCase.java"/>
|
||||
<exclude name="com/google/zxing/common/AbstractBlackBoxTestCase.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<target name="test-unit" depends="build-test">
|
||||
<junit printsummary="on" haltonfailure="on" haltonerror="on" fork="true" dir=".">
|
||||
<formatter type="plain" usefile="false"/>
|
||||
<classpath>
|
||||
<pathelement location="build"/>
|
||||
<pathelement location="build-test"/>
|
||||
<pathelement location="../javase/javase.jar"/>
|
||||
<pathelement location="lib/junit.jar"/>
|
||||
</classpath>
|
||||
<assertions>
|
||||
<enable/>
|
||||
</assertions>
|
||||
<batchtest>
|
||||
<fileset dir="test/src">
|
||||
<exclude name="**/*BlackBox*TestCase.java"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<target name="test" depends="test-unit,test-blackbox"/>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="build"/>
|
||||
<delete dir="build-test"/>
|
||||
|
|
Loading…
Reference in a new issue