Changeset 9501 in josm for trunk/build.xml
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 10 10 taginfo-img 11 11 build2 12 junit*.properties 13 foobar
-
- Property svn:ignore
-
trunk/build.xml
r9357 r9501 321 321 <init-test-preferences testfamily="functional"/> 322 322 <init-test-preferences testfamily="performance"/> 323 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="tools/jacocoant.jar" /> 323 324 </target> 324 325 <target name="test-clean"> … … 326 327 <delete dir="${test.dir}/report"/> 327 328 <delete file="${test.dir}/jacoco.exec" /> 329 <delete file="${test.dir}/jacocoIT.exec" /> 328 330 <delete file="${test.dir}/config/unit-josm.home/preferences.xml" /> 329 331 <delete file="${test.dir}/config/functional-josm.home/preferences.xml" /> … … 370 372 <macrodef name="call-junit"> 371 373 <attribute name="testfamily"/> 374 <attribute name="testITsuffix" default=""/> 372 375 <sequential> 373 <echo message="Running @{testfamily} tests with JUnit"/>374 <jacoco:coverage destfile="${test.dir}/jacoco .exec">376 <echo message="Running @{testfamily}@{testITsuffix} tests with JUnit"/> 377 <jacoco:coverage destfile="${test.dir}/jacoco@{testITsuffix}.exec"> 375 378 <junit printsummary="yes" fork="true" forkmode="once"> 376 379 <jvmarg value="-Dfile.encoding=UTF-8"/> … … 388 391 <formatter type="xml"/> 389 392 <batchtest fork="yes" todir="${test.dir}/report"> 390 <fileset dir="${test.dir}/build/@{testfamily}" includes="**/*Test .class"/>393 <fileset dir="${test.dir}/build/@{testfamily}" includes="**/*Test@{testITsuffix}.class"/> 391 394 </batchtest> 392 395 </junit> … … 394 397 </sequential> 395 398 </macrodef> 396 <target name="test" depends="test-compile" 399 <target name="test" depends="test-compile" unless="test.notRequired" 397 400 description="Run unit, functional and performance tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password"> 398 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml" classpath="tools/jacocoant.jar" />399 401 <call-junit testfamily="unit"/> 400 402 <call-junit testfamily="functional"/> 401 403 <call-junit testfamily="performance"/> 402 404 </target> 403 <target name="test-html" depends="test" description="Generate HTML test reports"> 405 <target name="test-it" depends="test-compile" unless="test-it.notRequired" 406 description="Run integration tests. OSM API (TEST) account shall be set with -Dosm.username and -Dosm.password"> 407 <call-junit testfamily="unit" testITsuffix="IT"/> 408 <call-junit testfamily="functional" testITsuffix="IT"/> 409 <call-junit testfamily="performance" testITsuffix="IT"/> 410 </target> 411 <target name="test-html" depends="test, test-it" description="Generate HTML test reports"> 404 412 <!-- May require additional ant dependencies like ant-trax package --> 405 413 <junitreport todir="${test.dir}/report"> … … 412 420 <executiondata> 413 421 <file file="${test.dir}/jacoco.exec"/> 422 <file file="${test.dir}/jacocoIT.exec"/> 414 423 </executiondata> 415 424 <structure name="JOSM Test Coverage">
Note: See TracChangeset
for help on using the changeset viewer.