4

我的 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>

它在(咳咳)Windows 上运行,如果这很重要的话。

4

0 回答 0