我的maven surefire测试在自己运行实际测试时不产生任何控制台输出,即控制台显示下面的输出,然后在测试期间旋转。测试完成后,控制台输出可用,但直到那时才可用。所以问题是,如何禁用此缓冲?
[INFO] Using configured provider org.apache.maven.surefire.junitcore.JUnitCoreProvider
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
这是我的pom的相关部分:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!-- version 2.12 has a bug in single-test -->
<version>2.11</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>2.11</version>
</dependency>
</dependencies>
</plugin>
</plugins>
如果重要的话,它正在(ahem)Windows上运行。