[英]Tests not running using the 'surefire' plugin for Maven
I am using TestNG to run my tests in Eclipse. 我正在使用TestNG在Eclipse中运行测试。 I have set up the maven-surefire-plugin in my pom.xml file. 我已经在pom.xml文件中设置了maven-surefire-plugin。 On running 'mvn clean install', I get this error and and the tests don't run. 在运行“ mvn全新安装”时,出现此错误,并且测试未运行。 Even when I manually try to run the tests in Eclipse using TestNG, the tests get skipped and don't run. 即使当我手动尝试使用TestNG在Eclipse中运行测试时,这些测试也会被跳过并且无法运行。 Not sure what the issue is. 不知道是什么问题。
most likely you have to specify your testng.xml (the real file that stands for ${TestSuite} parameter) as the Template XML file as described here: 您很有可能必须将testng.xml(代表$ {TestSuite}参数的实际文件)指定为Template XML文件,如下所述:
http://testng.org/doc/eclipse.html#eclipse-listeners http://testng.org/doc/eclipse.html#eclipse-listeners
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.