Commit acd4b34f authored by duminil's avatar duminil
Browse files

Deploy: Code coverage with Jacoco.

parent 2428fedb
......@@ -9,7 +9,6 @@ Before executing check that all required modules/projects are enumerated in pro
<description>
Create a Jar file with RegionChooser libraries and executables
</description>
<property name="deploy.dir.path" location="${user.home}/Desktop/SimStadt" />
<property name="target.path" value="lib/region-chooser" />
<property name="projects" value="RegionChooser,GeoLibs" />
<import file="../SimStadt/deploy-common.xml" />
......@@ -29,15 +28,17 @@ java -classpath lib/* -Xms512m -Xmx2g -Djava.util.logging.config.file=logging.pr
<chmod file="${deploy.dir}/RegionChooser.command" perm="u+x" />
</target>
<target name="unit-test" depends="test-common">
<junit printsummary="yes" haltonfailure="yes">
<target name="unit-test" depends="test-common" unless="doNotTest">
<jacoco:coverage destfile="${reports.dir}/${ant.project.name}.exec" xmlns:jacoco="antlib:org.jacoco.ant">
<junit printsummary="yes" haltonfailure="yes" fork="true">
<classpath refid="test-classpath"/>
<formatter type="xml" usefile="true" />
<formatter type="plain" usefile="true" />
<classpath refid="test-classpath"/>
<formatter type="xml" usefile="true" />
<formatter type="plain" usefile="true" />
<!-- RegionExtractor -->
<test name="eu.simstadt.regionchooser.RegionExtractorTests" haltonfailure="no" todir="${reports.dir}"/>
</junit>
<!-- RegionExtractor -->
<test name="eu.simstadt.regionchooser.RegionExtractorTests" haltonfailure="no" todir="${reports.dir}"/>
</junit>
</jacoco:coverage>
</target>
</project>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment