用于传递多个测试类名的ant testng任务(通过cmd行args传递)
我想调用一个ant任务,它应该为testng接受多个测试类并运行(而不是套件xml), 非常类似于测试类列表,但以逗号分隔。我在查阅文件时找不到任何线索。 有没有可能,请告诉我 这是我的ant任务,用于运行单个测试:用于传递多个测试类名的ant testng任务(通过cmd行args传递),ant,testng,Ant,Testng,我想调用一个ant任务,它应该为testng接受多个测试类并运行(而不是套件xml), 非常类似于测试类列表,但以逗号分隔。我在查阅文件时找不到任何线索。 有没有可能,请告诉我 这是我的ant任务,用于运行单个测试: <target name="run-class" description="run a specific test class. Requires class.name property set to fully-qualified name of class">
<target name="run-class"
description="run a specific test class. Requires class.name property set to fully-qualified name of class">
<some properties />
<testng classpathref="lib.path"
outputDir="${outputDir}"
workingDir="${workingDir}"
verbose="2"
useDefaultListeners="false"
listeners="${testng.listeners}"
className="${class.name}"
delegateCommandSystemProperties="true"
configFailurePolicy="continue">
<jvm params/>
</testng>
</target>
我将调用它作为:ant运行类-Dclass.name=com.vmware.CreateVM-DParallel=true
我想提供另一个ant任务,如上所述,它应该接受多个测试类(但不是作为套件xml文件)请参考文档并查看类路径
和
classpathref
属性和classfileset
元素。您找到了什么?如果您发布了您已经尝试过的示例,这将非常有帮助。