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 ...@@ -9,7 +9,6 @@ Before executing check that all required modules/projects are enumerated in pro
<description> <description>
Create a Jar file with RegionChooser libraries and executables Create a Jar file with RegionChooser libraries and executables
</description> </description>
<property name="deploy.dir.path" location="${user.home}/Desktop/SimStadt" />
<property name="target.path" value="lib/region-chooser" /> <property name="target.path" value="lib/region-chooser" />
<property name="projects" value="RegionChooser,GeoLibs" /> <property name="projects" value="RegionChooser,GeoLibs" />
<import file="../SimStadt/deploy-common.xml" /> <import file="../SimStadt/deploy-common.xml" />
...@@ -29,15 +28,17 @@ java -classpath lib/* -Xms512m -Xmx2g -Djava.util.logging.config.file=logging.pr ...@@ -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" /> <chmod file="${deploy.dir}/RegionChooser.command" perm="u+x" />
</target> </target>
<target name="unit-test" depends="test-common"> <target name="unit-test" depends="test-common" unless="doNotTest">
<junit printsummary="yes" haltonfailure="yes"> <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"/> <classpath refid="test-classpath"/>
<formatter type="xml" usefile="true" /> <formatter type="xml" usefile="true" />
<formatter type="plain" usefile="true" /> <formatter type="plain" usefile="true" />
<!-- RegionExtractor --> <!-- RegionExtractor -->
<test name="eu.simstadt.regionchooser.RegionExtractorTests" haltonfailure="no" todir="${reports.dir}"/> <test name="eu.simstadt.regionchooser.RegionExtractorTests" haltonfailure="no" todir="${reports.dir}"/>
</junit> </junit>
</jacoco:coverage>
</target> </target>
</project> </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