繁体   English   中英

未使用Maven的“ surefire”插件运行测试

[英]Tests not running using the 'surefire' plugin for Maven

我正在使用TestNG在Eclipse中运行测试。 我已经在pom.xml文件中设置了maven-surefire-plugin。 在运行“ mvn全新安装”时,出现此错误,并且测试未运行。 即使当我手动尝试使用TestNG在Eclipse中运行测试时,这些测试也会被跳过并且无法运行。 不知道是什么问题。

在运行“ mvn clean install” [![] [1] ] 2

您很有可能必须将testng.xml(代表$ {TestSuite}参数的实际文件)指定为Template XML文件,如下所述:

http://testng.org/doc/eclipse.html#eclipse-listeners

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM