我需要在maven集成阶段运行一些Fitnesse测试,当我执行Fitnesse测试时 mvn clean verify
但执行后我得到了这个:
测试运行:0,失败:0,错误:0,跳过:0,已过去时间:4.723 sec - in integration.runnerIT [INFO] --------------------- [INFO] 建立成功[信息] ---------------------
问题是执行测试并且其中一个测试失败但是maven说没有执行任何测试。
这是我的pom文件:
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<executions>
<execution>
</execution>
</executions>
<configuration>
<excludes>
<!-- this test actually runs fitnesse tests
therefore it will only be executed for
integration-test goal
-->
<exclude>**/*IT.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.18.1</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*Test.java</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF8</encoding>
<optimize>true</optimize>
</configuration>
</plugin>
</plugins>
这是我的测试跑步者:
@RunWith(FitNesseRunner.class)
@FitNesseRunner.Suite("TimTests")
@FitNesseRunner.FitnesseDir("./src/test/resources")
@FitNesseRunner.OutputDir("./target/fitnesse-results")
public class runnerIT {
}
maven如何显示健身测试的执行次数以及是否失败?有可能吗?