我想调用一个ant任务,它应该接受testng和run(不是suite xml)的多个测试类, 非常类似于逗号分隔测试类列表。我查看文档时找不到任何线索。 有没有可能,请让我知道。ant-testng任务传递多个测试类名(通过cmd行参数)
这是我的Ant任务运行一个测试:
<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 run-class -Dclass.name=com.vmware.CreateVM -DParallel=true
我想提供另一种蚂蚁的任务,因为上面应该接受多个测试类(但没有一套XML文件)
您发现了什么? – Bigood 2013-03-11 09:53:01
如果你发布了你已经尝试过的东西的例子,那真的很有帮助。 – artdanil 2013-03-11 20:28:34