2011-11-08 70 views

回答

2

您可以使用ant -DexcludedTest=SomeExcludedTest并配置了你这样的批量测试:

<batchtest ...> 
    <!-- define the excludedTest property to an unexisting test name in case 
     nothing is passed as a system property --> 
    <property name="excludedTest" value="THIS_TEST_NAME_DOES_NOT_EXIST"/> 
    <fileset dir="${src.tests}"> 
     <include name="**/*Test.java"/> 
     <exclude name="**/${excludedTest}.java"/> 
    </fileset> 
</batchtest> 
相关问题