/testng-system-out-printer

A Java TestNG Listener that prints test method names, millisecond timings, and outcomes to System.out as the tests are completed.

Primary LanguageJavaApache License 2.0Apache-2.0

testng-system-out-printer

A Java TestNG Listener that prints test method names, millisecond timings, and outcomes to System.out as the tests are completed.

Currently, when running TestNG tests in e.g. Maven, nothing is printed to the console while the tests are running. This library simply prints the tests to System.out/stdout as they are completed. This is a very simple way of quickly getting more real-time info about your builds, when more complicated setups aren't worth it.

License

This project is licensed under the Apache License Version 2.0 - for more details please see the LICENSE file.

Maven Central

This project is available on Maven Central. Use something like this dependency specification:

<dependency>
    <groupId>com.little-fluffy-clouds</groupId>
    <artifactId>testng-system-out-printer</artifactId>
    <version>0.1</version>
    <scope>test</scope>
</dependency>

Configuration

To make TestNG use the special Listener put something like the following in the configuration for your build system (the below is for a Maven pom):

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.17</version>
    <configuration>
        <properties>
            <property>
                <name>listener</name>
                <value>com.little_fluffy_clouds.testng.SystemOutTestPrinter</value>
            </property>
        </properties>
    </configuration>
</plugin>