|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
TextReport()
|
|
| Method Summary | |
|---|---|
void |
onQuit(AggregatedQuitEvent e)
|
void |
onStart(AggregatedStartEvent e)
|
void |
onSuiteResult(AggregatedSuiteResultEvent e)
|
void |
onTestResult(AggregatedTestResultEvent e)
|
void |
setFile(File outputFile)
Set an external file to write to. |
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). |
| 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 showStatusError)
public void setShowStatusFailure(boolean showStatusFailure)
public void setShowStatusIgnored(boolean showStatusIgnored)
public void setShowStatusOk(boolean showStatusOk)
public void setShowThrowable(boolean showThrowable)
setShowStackTraces(boolean),
setShowOutputStream(boolean),
setShowErrorStream(boolean)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 onTestResult(AggregatedTestResultEvent e)
public void onSuiteResult(AggregatedSuiteResultEvent e)
public void onStart(AggregatedStartEvent e)
public void onQuit(AggregatedQuitEvent e)
public void setOuter(JUnit4 junit)
AggregatedEventListenerBuildException if
parameter validation doesn't succeed, for example.
setOuter in interface AggregatedEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||