Aufruf der JUnit Tests
This commit is contained in:
parent
ba7fc9ff99
commit
52ca9dbf6f
@ -5,6 +5,7 @@
|
||||
<property name="lib.home" value="${basedir}/lib" />
|
||||
<property name="conf.home" value="${basedir}/conf" />
|
||||
<property name="src.home" value="${basedir}/src" />
|
||||
<property name="test.home" value="${basedir}/test" />
|
||||
<property name="dist.home" value="${basedir}/dist" />
|
||||
|
||||
<property file="${user.home}/.hsar.ant.properties" />
|
||||
@ -72,6 +73,19 @@
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="compile-test" description="tests compilieren" depends="compile">
|
||||
<mkdir dir="${build.home}" />
|
||||
<mkdir dir="${build.home}/test" />
|
||||
<javac srcdir="${test.home}" destdir="${build.home}/test" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}" encoding="UTF8">
|
||||
<classpath refid="compile.classpath" />
|
||||
<classpath>
|
||||
<pathelement path="${compile.classpath}"/>
|
||||
<pathelement location="${build.home}/cls"/>
|
||||
<pathelement path="/usr/share/java/junit4.jar"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="enhance" description="openjpa enhancer" depends="compile">
|
||||
<taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask">
|
||||
<classpath refid="enhance.classpath"/>
|
||||
@ -109,4 +123,19 @@
|
||||
src="database/dropschema.sql" />
|
||||
</target>
|
||||
|
||||
<target name="remote-test" description="inspection of xmlrpc-api" depends="compile-test">
|
||||
<junit printsummary="yes" fork="yes">
|
||||
<classpath>
|
||||
<fileset dir="lib">
|
||||
<include name="*.jar" />
|
||||
</fileset>
|
||||
<pathelement location="${build.home}/cls"/>
|
||||
<pathelement location="${build.home}/test"/>
|
||||
<pathelement path="/usr/share/java/junit4.jar"/>
|
||||
</classpath>
|
||||
<formatter type="xml"/>
|
||||
<test name="de.hsadmin.remote.RemoteTest"/>
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user