|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.carrotsearch.ant.tasks.junit4.listeners.TextReport
public class TextReport
A listener that will subscribe to test execution and dump informational info about the progress to the console or a text file.
| Nested Class Summary | |
|---|---|
static class |
TextReport.OutputMode
Display mode for output streams. |
| Constructor Summary | |
|---|---|
TextReport()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextReport()
| Method Detail |
|---|
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 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 AggregatedEventListener
public void onStart(AggregatedStartEvent 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||