【发布时间】:2016-08-08 18:08:40
【问题描述】:
我正在使用 TestNG 和 maven 故障安全进行集成测试。
测试已执行并通过,但绝对没有打印出任何细节。
我什至创建了一个虚拟测试并在其中包含 System.out.println 并且没有打印出来。
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>**/*IntegrationTest.java</include>
</includes>
<properties>
<property>
<name>surefire.testng.verbose</name>
<value>10</value>
</property>
</properties>
</configuration>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<skip>false</skip>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>**/*IntegrationTest.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
我希望打印 testNG 摘要并打印日志语句 ...
我也在使用 groovy-eclipse-compiler 插件.. 不确定这是否会有所不同
【问题讨论】:
-
你试过没有
<redirectTestOutputToFile>true</redirectTestOutputToFile>吗?
标签: java maven testng maven-failsafe-plugin