mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 18:33:37 -05:00
Changed test.system to JUnit tests.
This commit is contained in:
parent
88ac3bab25
commit
91f5f6b302
2 changed files with 36 additions and 6 deletions
|
@ -203,6 +203,12 @@
|
||||||
</dirset>
|
</dirset>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
|
<path id="writelatex-git-bridge.module.test.system.sourcepath">
|
||||||
|
<dirset dir="${module.writelatex-git-bridge.basedir}/test">
|
||||||
|
<include name="system"/>
|
||||||
|
</dirset>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
|
||||||
<target name="compile.module.writelatex-git-bridge" depends="compile.module.writelatex-git-bridge.production,compile.module.writelatex-git-bridge.tests.unit" description="Compile module writelatex-git-bridge"/>
|
<target name="compile.module.writelatex-git-bridge" depends="compile.module.writelatex-git-bridge.production,compile.module.writelatex-git-bridge.tests.unit" description="Compile module writelatex-git-bridge"/>
|
||||||
|
|
||||||
|
@ -242,6 +248,24 @@
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="compile.module.writelatex-git-bridge.tests.system" depends="compile.module.writelatex-git-bridge.production" description="compile module writelatex-git-bridge; test classes" unless="skip.tests">
|
||||||
|
<mkdir dir="${writelatex-git-bridge.testoutput.dir}"/>
|
||||||
|
<javac destdir="${writelatex-git-bridge.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
|
||||||
|
<compilerarg line="${compiler.args.writelatex-git-bridge}"/>
|
||||||
|
<bootclasspath refid="writelatex-git-bridge.module.bootclasspath"/>
|
||||||
|
<classpath refid="writelatex-git-bridge.module.classpath"/>
|
||||||
|
<src refid="writelatex-git-bridge.module.test.system.sourcepath"/>
|
||||||
|
<patternset refid="excluded.from.compilation.writelatex-git-bridge"/>
|
||||||
|
</javac>
|
||||||
|
|
||||||
|
<copy todir="${writelatex-git-bridge.testoutput.dir}">
|
||||||
|
<fileset dir="${module.writelatex-git-bridge.basedir}/test">
|
||||||
|
<patternset refid="compiler.resources"/>
|
||||||
|
<type type="file"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="clean.module.writelatex-git-bridge" description="cleanup module">
|
<target name="clean.module.writelatex-git-bridge" description="cleanup module">
|
||||||
<delete dir="${writelatex-git-bridge.output.dir}"/>
|
<delete dir="${writelatex-git-bridge.output.dir}"/>
|
||||||
<delete dir="${writelatex-git-bridge.testoutput.dir}"/>
|
<delete dir="${writelatex-git-bridge.testoutput.dir}"/>
|
||||||
|
@ -314,10 +338,18 @@
|
||||||
</junit>
|
</junit>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="test.system" depends="package">
|
<target name="test.system" depends="compile.module.writelatex-git-bridge.tests.system">
|
||||||
<property name="executable-full-path"
|
<junit>
|
||||||
location="${module.writelatex-git-bridge.basedir}/test/system"/>
|
<classpath>
|
||||||
<exec executable="${executable-full-path}/main.sh" />
|
<path refid="writelatex-git-bridge.module.classpath"/>
|
||||||
|
<pathelement location="${writelatex-git-bridge.testoutput.dir}"/>
|
||||||
|
</classpath>
|
||||||
|
<batchtest>
|
||||||
|
<fileset dir="${writelatex-git-bridge.testoutput.dir}">
|
||||||
|
</fileset>
|
||||||
|
</batchtest>
|
||||||
|
<formatter type="brief" usefile="false"/>
|
||||||
|
</junit>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="test" depends="test.unit, test.system, clean" />
|
<target name="test" depends="test.unit, test.system, clean" />
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
echo "System tests complete."
|
|
||||||
exit 0
|
|
Loading…
Reference in a new issue