maven插件maven-surefire-plugins
pom.xml添加插件maven-surefire-plugins
pom.xml层级,suiteXmlFiles设置指定的testNG.xml文件
<build>
<pluginManagement>
<plugins>
<!-- 添加maven-surefire-plugins插件-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<suiteXmlFiles>
<