我有这个 Maven 配置文件设置。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8</version>
<configuration>
<includes>
<include>com.something.test.X.java</include>
</includes>
<properties>
<property>
<name>reporter</name>
<value>org.testng.reporters.XMLReporter</value>
</property>
<property>
<name>listener</name>
<value>Listener</value>
</property>
</properties>
<systemProperties>
<property>
<name>x.host</name>
<value>${server.ip}</value>
</property>
<property>
<name>http_port</name>
<value>${http_port}</value>
</property>
<property>
<name>https_port</name>
<value>${https_port}</value>
</property>
<property>
<name>jmx_remote_port</name>
<value>${jmx_remote_port}</value>
</property>
</systemProperties>
<systemPropertyVariables>
<x.host>${server.ip}</x.host>
<env.BUILD_NUMBER>${env.BUILD_NUMBER}</env.BUILD_NUMBER>
<env.HOSTNAME>${env.HOSTNAME}</env.HOSTNAME>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>test</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
</configuration>
</execution>
</executions>
</plugin>
当我运行配置文件时,包含的测试不运行!我究竟做错了什么?我什至用suitexmlfile尝试过,但我得到一个解析错误,它找不到类。