org.apache.maven.surefire.report
Class ForkingConsoleReporter

java.lang.Object
  extended by org.apache.maven.surefire.report.AbstractReporter
      extended by org.apache.maven.surefire.report.AbstractTextReporter
          extended by org.apache.maven.surefire.report.AbstractConsoleReporter
              extended by org.apache.maven.surefire.report.ConsoleReporter
                  extended by org.apache.maven.surefire.report.ForkingConsoleReporter
All Implemented Interfaces:
Reporter, RunReporter

public class ForkingConsoleReporter
extends ConsoleReporter

Surefire reporter that will prefix surefire output to make it easier to parse when forking tests

Version:
$Id: ForkingConsoleReporter.java 1063892 2011-01-26 22:04:57Z krosenvold $

Field Summary
static String FORKING_PREFIX_FOOTER
          Surefire output lines part of the footer will start with this value
static String FORKING_PREFIX_HEADING
          Surefire output lines part of the header will start with this value
static String FORKING_PREFIX_STANDARD
          Surefire output lines not part of header or footer, nor test output will start with this value.
 
Fields inherited from class org.apache.maven.surefire.report.AbstractTextReporter
BRIEF, PLAIN, SUMMARY, writer
 
Constructor Summary
ForkingConsoleReporter(ReporterConfiguration reporterConfiguration)
           
 
Method Summary
 void writeFooter(String footer)
          Write a footer line prepending FORKING_PREFIX_FOOTER
 void writeMessage(String message)
          Write a surefire message line prepending FORKING_PREFIX_STANDARD
 
Methods inherited from class org.apache.maven.surefire.report.AbstractConsoleReporter
getTestSetStartingMessage, isTestSetStartingMessage, parseTestSetStartingMessage, runStarting, testSetStarting
 
Methods inherited from class org.apache.maven.surefire.report.AbstractTextReporter
getElapsedTimeSummary, getOutput, getTestSetSummary, isTestSetCompletedMessage, reset, setWriter, testError, testFailed, testSetCompleted, testSkipped, testSucceeded, writeDetailMessage
 
Methods inherited from class org.apache.maven.surefire.report.AbstractReporter
runCompleted, testAssumptionFailure, testError, testFailed, testStarting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.surefire.report.RunReporter
runCompleted
 

Field Detail

FORKING_PREFIX_STANDARD

public static final String FORKING_PREFIX_STANDARD
Surefire output lines not part of header or footer, nor test output will start with this value. eg. "Running org.foo.BarTest" or "Tests run: ..."

See Also:
Constant Field Values

FORKING_PREFIX_HEADING

public static final String FORKING_PREFIX_HEADING
Surefire output lines part of the header will start with this value

See Also:
Constant Field Values

FORKING_PREFIX_FOOTER

public static final String FORKING_PREFIX_FOOTER
Surefire output lines part of the footer will start with this value

See Also:
Constant Field Values
Constructor Detail

ForkingConsoleReporter

public ForkingConsoleReporter(ReporterConfiguration reporterConfiguration)
Method Detail

writeFooter

public void writeFooter(String footer)
Write a footer line prepending FORKING_PREFIX_FOOTER

Specified by:
writeFooter in interface Reporter
Overrides:
writeFooter in class AbstractReporter

writeMessage

public void writeMessage(String message)
Write a surefire message line prepending FORKING_PREFIX_STANDARD

Specified by:
writeMessage in interface Reporter
Overrides:
writeMessage in class AbstractTextReporter
Parameters:
message - The message to write.


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.