Changeset 15032 in josm


Ignore:
Timestamp:
2019-05-01T17:23:42+02:00 (7 months ago)
Author:
Don-vip
Message:

see #17671 - allow to include/exclude specific unit test on the command line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r14997 r15032  
    5656        <property name="jacoco.inclnolocationclasses" value="false" />
    5757        <property name="junit.printsummary" value="on" />
     58        <property name="default-junit-includes" value="**/*Test.class"/>
     59        <property name="default-junitIT-includes" value="**/*TestIT.class"/>
    5860        <!-- build parameter: compression level (ant -Dclevel=N)
    5961                 N ranges from 0 (no compression) to 9 (maximum compression)
     
    502504        <attribute name="testITsuffix" default=""/>
    503505        <attribute name="coverage" default="${coverageByDefault}"/>
     506        <attribute name="includes" default="${default-junit@{testITsuffix}-includes}"/>
     507        <attribute name="excludes" default="${default-junit@{testITsuffix}-excludes}"/>
    504508        <sequential>
    505509            <echo message="Running @{testfamily}@{testITsuffix} tests with JUnit"/>
     
    549553                    <formatter type="xml"/>
    550554                    <batchtest fork="yes" todir="${test.dir}/report">
    551                         <fileset dir="${test.dir}/build/@{testfamily}" includes="**/*Test@{testITsuffix}.class"/>
     555                        <fileset dir="${test.dir}/build/@{testfamily}" includes="@{includes}" excludes="@{excludes}"/>
    552556                    </batchtest>
    553557                </junit>
Note: See TracChangeset for help on using the changeset viewer.