public class TextReport extends 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 |
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(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 |
setShowNumFailures(int num)
Summarize N failures at the end of the report.
|
void |
setShowOutput(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(String mode)
public void setShowNumFailures(int num)
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(File outputFile) throws IOException
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 IOException
IOExceptionpublic void onChildBootstrap(ChildBootstrap e) throws IOException
IOExceptionpublic void onHeartbeat(HeartBeatEvent e) throws IOException
IOExceptionpublic void onQuit(AggregatedQuitEvent e) throws IOException
IOExceptionpublic void onSuiteStart(AggregatedSuiteStartedEvent e) throws IOException
IOExceptionpublic void onOutput(PartialOutputEvent e) throws IOException
IOExceptionpublic void onTestResult(AggregatedTestResultEvent e) throws IOException
IOExceptionpublic void onSuiteResult(AggregatedSuiteResultEvent e) throws IOException
IOExceptionCopyright © 2011-2013 Carrot Search s.c.. All Rights Reserved.