org.apache.maven.surefire.report
Class ReporterConfiguration

java.lang.Object
  extended by org.apache.maven.surefire.report.ReporterConfiguration

public class ReporterConfiguration
extends Object

Author:
Kristian Rosenvold

Constructor Summary
ReporterConfiguration(List reports, File reportsDirectory, Boolean trimStackTrace)
           
ReporterConfiguration(List reports, File reportsDirectory, Boolean trimStackTrace, Integer forkWithTimeout)
           
 
Method Summary
 Integer getForkTimeout()
           
 PrintStream getOriginalSystemErr()
          The original system err belonging to the (possibly forked) surefire process.
 PrintStream getOriginalSystemOut()
          The original system out belonging to the (possibly forked) surefire process.
 List getReports()
          A list of classnames representing runnable reports for this test-run.
 File getReportsDirectory()
          The directory where reports will be created, normally ${project.build.directory}/surefire-reports
 boolean isForkWithTimeout()
          Indicates that the test is running timed out, meaning this process could be abruptly killed.
 boolean isTimedOut()
           
 Boolean isTrimStackTrace()
          Indicates if reporting should trim the stack traces.
 void setTimedOut(boolean timedOut)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReporterConfiguration

public ReporterConfiguration(List reports,
                             File reportsDirectory,
                             Boolean trimStackTrace,
                             Integer forkWithTimeout)

ReporterConfiguration

public ReporterConfiguration(List reports,
                             File reportsDirectory,
                             Boolean trimStackTrace)
Method Detail

getReportsDirectory

public File getReportsDirectory()
The directory where reports will be created, normally ${project.build.directory}/surefire-reports

Returns:
A file pointing at the specified directory

isTrimStackTrace

public Boolean isTrimStackTrace()
Indicates if reporting should trim the stack traces.

Returns:
true if stacktraces should be trimmed in reporting

getReports

public List getReports()
A list of classnames representing runnable reports for this test-run.

Returns:
A list of strings, each string is a classname of a class implementing the org.apache.maven.surefire.report.Reporter interface

getOriginalSystemOut

public PrintStream getOriginalSystemOut()
The original system out belonging to the (possibly forked) surefire process. Note that users of Reporter/ReporterFactory should normally not be using this.

Returns:
A printstream.

getOriginalSystemErr

public PrintStream getOriginalSystemErr()
The original system err belonging to the (possibly forked) surefire process. Note that users of Reporter/ReporterFactory should normally not be using this.

Returns:
A printstream.

isForkWithTimeout

public boolean isForkWithTimeout()
Indicates that the test is running timed out, meaning this process could be abruptly killed. This will normally tell the reporter to delete result files upon startup.

Returns:
true if test run can be killed by timeout

getForkTimeout

public Integer getForkTimeout()

setTimedOut

public void setTimedOut(boolean timedOut)

isTimedOut

public boolean isTimedOut()


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