public class TextReport extends Object implements AggregatedEventListener
| Constructor and Description |
|---|
TextReport() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatDescription(Description description) |
void |
onHeartbeat(HeartBeatEvent e) |
void |
onQuit(AggregatedQuitEvent e) |
void |
onStart(AggregatedStartEvent e) |
void |
onSuiteResult(AggregatedSuiteResultEvent e) |
void |
onTestResult(AggregatedTestResultEvent e) |
static String |
padTo(int columns,
String text,
String ellipsis) |
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 junit)
Link to the container.
|
void |
setShowErrorStream(boolean showErrorStream)
Show error stream from tests.
|
void |
setShowOutputStream(boolean showOutputStream)
Show output stream from tests.
|
void |
setShowStackTraces(boolean showStackTraces)
Show stack trace information.
|
void |
setShowStatusError(boolean showStatusError) |
void |
setShowStatusFailure(boolean showStatusFailure) |
void |
setShowStatusIgnored(boolean showStatusIgnored) |
void |
setShowStatusOk(boolean showStatusOk) |
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 showStatusError)
public void setShowStatusFailure(boolean showStatusFailure)
public void setShowStatusIgnored(boolean showStatusIgnored)
public void setShowStatusOk(boolean showStatusOk)
public void setMaxClassNameColumns(int maxClassNameColumns)
public void setUseSimpleNames(boolean useSimpleNames)
public void setTimestamps(boolean timestamps)
public void setShowThrowable(boolean showThrowable)
public void setShowStackTraces(boolean showStackTraces)
public void setShowErrorStream(boolean showErrorStream)
public void setShowOutputStream(boolean showOutputStream)
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 onTestResult(AggregatedTestResultEvent e)
public void onSuiteResult(AggregatedSuiteResultEvent e)
public void onStart(AggregatedStartEvent e)
public String formatDescription(Description description)
public void onHeartbeat(HeartBeatEvent e)
public void onQuit(AggregatedQuitEvent e)
public void setOuter(JUnit4 junit)
AggregatedEventListenerBuildException if
parameter validation doesn't succeed, for example.setOuter in interface AggregatedEventListenerCopyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.