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 |
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(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 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(File outputFile) throws IOException
IOException
public void setAppend(boolean append)
setFile(File)
is also specified.public void setOuter(JUnit4 task)
JUnit4
.setOuter
in interface AggregatedEventListener
public void onStart(AggregatedStartEvent e) throws IOException
IOException
public void onChildBootstrap(ChildBootstrap e) throws IOException
IOException
public void onHeartbeat(HeartBeatEvent e) throws IOException
IOException
public void onQuit(AggregatedQuitEvent e) throws IOException
IOException
public void onSuiteStart(AggregatedSuiteStartedEvent e) throws IOException
IOException
public void onOutput(PartialOutputEvent e) throws IOException
IOException
public void onTestResult(AggregatedTestResultEvent e) throws IOException
IOException
public void onSuiteResult(AggregatedSuiteResultEvent e) throws IOException
IOException
Copyright © 2011–2015 Carrot Search s.c.. All rights reserved.