Changeset 9501 in josm
- Timestamp:
- 2016-01-17T15:06:09+01:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 4 moved
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"> -
trunk/test
- Property svn:ignore
-
old new 2 2 report 3 3 jacoco.exec 4 jacocoIT.exec
-
- Property svn:ignore
-
trunk/test/functional/org/openstreetmap/josm/data/osm/TaginfoTestIT.java
r9496 r9501 26 26 27 27 /** 28 * Various tests with Taginfo.28 * Various integration tests with Taginfo. 29 29 */ 30 public class Taginfo IntegrationTest{30 public class TaginfoTestIT { 31 31 32 32 /** -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTestIT.java
r9500 r9501 28 28 29 29 /** 30 * Unittests of {@link MapPaintPreference} class.30 * Integration tests of {@link MapPaintPreference} class. 31 31 */ 32 public class MapPaintPreferenceTest {32 public class MapPaintPreferenceTestIT { 33 33 34 34 /** -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java
r9500 r9501 23 23 24 24 /** 25 * Unittests of {@link TaggingPresetPreference} class.25 * Integration tests of {@link TaggingPresetPreference} class. 26 26 */ 27 public class TaggingPresetPreferenceTest {27 public class TaggingPresetPreferenceTestIT { 28 28 29 29 /** -
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
r9500 r9501 20 20 21 21 /** 22 * Unittests of {@link PluginHandler} class.22 * Integration tests of {@link PluginHandler} class. 23 23 */ 24 public class PluginHandlerTest {24 public class PluginHandlerTestIT { 25 25 26 26 /**
Note:
See TracChangeset
for help on using the changeset viewer.