public class TextReport extends java.lang.Object implements AggregatedEventListener
| Modifier and Type | Class and Description |
|---|---|
static class |
TextReport.OutputMode
Display mode for output streams.
|
| Constructor and Description |
|---|
TextReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigured(StackTraceFilter sfilter)
Filter stack traces from certain frames.
|
void |
onChildBootstrap(ChildBootstrap e) |
void |
onHeartbeat(HeartBeatEvent e) |
void |
onJvmOutput(JvmOutputEvent e) |
void |
onOutput(PartialOutputEvent e) |
void |
onQuit(AggregatedQuitEvent e) |
void |
onStart(AggregatedStartEvent e) |
void |
onSuiteResult(AggregatedSuiteResultEvent e) |
void |
onSuiteStart(AggregatedSuiteStartedEvent e) |
void |
onTestResult(AggregatedTestResultEvent e) |
void |
setAppend(boolean append)
Append if
setFile(File) is also specified. |
void |
setFile(java.io.File outputFile)
Set an external file to write to.
|
void |
setMaxClassNameColumns(int maxClassNameColumns)
Set maximum number of class name columns before truncated with ellipsis.
|
void |
setOuter(JUnit4 task)
Initialization by container task
JUnit4. |
void |
setShowEmptySuites(boolean showEmptySuites)
Display suites without any errors and with no tests (resulting from filtering
expressions, for example).
|
void |
setShowNumFailures(int num)
Summarize N failures at the end of the report.
|
void |
setShowOutput(java.lang.String mode)
Display mode for output streams.
|
void |
setShowStackTraces(boolean showStackTraces)
Show stack trace information.
|
void |
setShowStatusError(boolean showStatus) |
void |
setShowStatusFailure(boolean showStatus) |
void |
setShowStatusIgnored(boolean showStatus) |
void |
setShowStatusOk(boolean showStatus) |
void |
setShowSuiteSummary(boolean showSuiteSummary)
If enabled, shows suite summaries in "maven-like" format of:
|
void |
setShowThrowable(boolean showThrowable)
If enabled, displays extended error information for tests that failed
(exception class, message, stack trace, standard streams).
|
void |
setTimestamps(boolean timestamps)
Show duration timestamps for tests and suites.
|
void |
setUseSimpleNames(boolean useSimpleNames)
Use simple class names for suite naming.
|
public void setShowStatusError(boolean showStatus)
public void setShowStatusFailure(boolean showStatus)
public void setShowStatusOk(boolean showStatus)
public void setShowStatusIgnored(boolean showStatus)
public void setMaxClassNameColumns(int maxClassNameColumns)
public void setUseSimpleNames(boolean useSimpleNames)
public void setTimestamps(boolean timestamps)
public void addConfigured(StackTraceFilter sfilter)
public void setShowThrowable(boolean showThrowable)
setShowStackTraces(boolean)public void setShowStackTraces(boolean showStackTraces)
public void setShowOutput(java.lang.String mode)
public void setShowNumFailures(int num)
public void setShowEmptySuites(boolean showEmptySuites)
public void setShowSuiteSummary(boolean showSuiteSummary)
Running SuiteName [...suite tests if enabled...] Tests: xx, Failures: xx, Errors: xx, Skipped: xx, Time: xx sec [<<< FAILURES!]
public void setFile(java.io.File outputFile)
throws java.io.IOException
java.io.IOExceptionpublic void setAppend(boolean append)
setFile(File) is also specified.public void setOuter(JUnit4 task)
JUnit4.setOuter in interface AggregatedEventListenerpublic void onStart(AggregatedStartEvent e) throws java.io.IOException
java.io.IOExceptionpublic void onChildBootstrap(ChildBootstrap e) throws java.io.IOException
java.io.IOExceptionpublic void onHeartbeat(HeartBeatEvent e) throws java.io.IOException
java.io.IOExceptionpublic void onQuit(AggregatedQuitEvent e) throws java.io.IOException
java.io.IOExceptionpublic void onSuiteStart(AggregatedSuiteStartedEvent e) throws java.io.IOException
java.io.IOExceptionpublic void onOutput(PartialOutputEvent e) throws java.io.IOException
java.io.IOExceptionpublic void onJvmOutput(JvmOutputEvent e) throws java.io.IOException
java.io.IOExceptionpublic void onTestResult(AggregatedTestResultEvent e) throws java.io.IOException
java.io.IOExceptionpublic void onSuiteResult(AggregatedSuiteResultEvent e) throws java.io.IOException
java.io.IOExceptionCopyright © 2011–2017 Carrot Search s.c.. All rights reserved.