|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface TestLogging extends TestLogging
Options that determine which test events get logged, and at which detail.
Method Summary | |
---|---|
void
|
events(Object... events)
Sets the events to be logged. |
int
|
getDisplayGranularity()
Returns the display granularity of the events to be logged. |
Set
|
getEvents()
Returns the events to be logged. |
TestExceptionFormat
|
getExceptionFormat()
Returns the format to be used for logging test exceptions. |
int
|
getMaxGranularity()
Returns the maximum granularity of the events to be logged. |
int
|
getMinGranularity()
Returns the minimum granularity of the events to be logged. |
boolean
|
getShowCauses()
Tells whether causes of exceptions that occur during test execution will be logged. |
boolean
|
getShowExceptions()
Tells whether exceptions that occur during test execution will be logged. |
boolean
|
getShowStackTraces()
Tells whether stack traces of exceptions that occur during test execution will be logged. |
boolean
|
getShowStandardStreams()
Tells whether output on standard out and standard error will be logged. |
Set
|
getStackTraceFilters()
Returns the set of filters to be used for sanitizing test stack traces. |
void
|
setDisplayGranularity(int granularity)
Sets the display granularity of the events to be logged. |
void
|
setEvents(Iterable events)
Sets the events to be logged. |
void
|
setExceptionFormat(Object exceptionFormat)
Sets the format to be used for logging test exceptions. |
void
|
setMaxGranularity(int granularity)
Returns the maximum granularity of the events to be logged. |
void
|
setMinGranularity(int granularity)
Sets the minimum granularity of the events to be logged. |
void
|
setShowCauses(boolean flag)
Sets whether causes of exceptions that occur during test execution will be logged. |
void
|
setShowExceptions(boolean flag)
Sets whether exceptions that occur during test execution will be logged. |
void
|
setShowStackTraces(boolean flag)
Sets whether stack traces of exceptions that occur during test execution will be logged. |
TestLogging
|
setShowStandardStreams(boolean flag)
Sets whether output on standard out and standard error will be logged. |
void
|
setStackTraceFilters(Iterable stackTraces)
Sets the set of filters to be used for sanitizing test stack traces. |
void
|
stackTraceFilters(Object... stackTraces)
Convenience method for setStackTraceFilters(java.lang.Iterable). |
Methods inherited from interface TestLogging | |
---|---|
getShowStandardStreams, setShowStandardStreams |
Method Detail |
---|
public void events(Object... events)
events
- the events to be logged
public int getDisplayGranularity()
-1 denotes the highest granularity and corresponds to an atomic test.
public Set getEvents()
public TestExceptionFormat getExceptionFormat()
public int getMaxGranularity()
-1 denotes the highest granularity and corresponds to an atomic test.
public int getMinGranularity()
-1 denotes the highest granularity and corresponds to an atomic test.
public boolean getShowCauses()
public boolean getShowExceptions()
public boolean getShowStackTraces()
public boolean getShowStandardStreams()
public Set getStackTraceFilters()
public void setDisplayGranularity(int granularity)
-1 denotes the highest granularity and corresponds to an atomic test.
granularity
- the display granularity of the events to be logged
public void setEvents(Iterable events)
events
- the events to be logged
public void setExceptionFormat(Object exceptionFormat)
exceptionFormat
- the format to be used for logging test exceptions
public void setMaxGranularity(int granularity)
-1 denotes the highest granularity and corresponds to an atomic test.
granularity
- the maximum granularity of the events to be logged
public void setMinGranularity(int granularity)
-1 denotes the highest granularity and corresponds to an atomic test.
granularity
- the minimum granularity of the events to be logged
public void setShowCauses(boolean flag)
flag
- whether causes of exceptions that occur during test execution will be logged
public void setShowExceptions(boolean flag)
flag
- whether exceptions that occur during test execution will be logged
public void setShowStackTraces(boolean flag)
flag
- whether stack traces of exceptions that occur during test execution will be logged
public TestLogging setShowStandardStreams(boolean flag)
public void setStackTraceFilters(Iterable stackTraces)
stackTraces
- the set of filters to be used for sanitizing test stack traces
public void stackTraceFilters(Object... stackTraces)
Gradle API 1.12