|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.grails.test.event.GrailsTestEventPublisher
class GrailsTestEventPublisher
Publishes test related events to the Grails build system.
| Field Summary | |
|---|---|
protected groovy.lang.Closure |
event
|
| Constructor Summary | |
GrailsTestEventPublisher(groovy.lang.Closure event)
@param event the "event" closure from the Grails build system |
|
| Method Summary | |
|---|---|
void
|
testCaseEnd(java.lang.String name, java.lang.String out = null, java.lang.String err = null)
Signifies the end of a "unit" of tests. |
void
|
testCaseStart(java.lang.String name)
Signifies the start of a "unit" of tests. |
void
|
testEnd(java.lang.String name)
Signifies that a test has ended. |
void
|
testFailure(java.lang.String name, java.lang.Throwable failure, boolean isError = false)
Signifies that a test did not complete successfully. |
void
|
testFailure(java.lang.String name, java.lang.String failure = null, boolean isError = false)
Signifies that a test did not complete successfully. |
void
|
testStart(java.lang.String name)
Signifies the start of an individual test, inside a parent "unit". |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Field Detail |
|---|
protected groovy.lang.Closure event
| Constructor Detail |
|---|
GrailsTestEventPublisher(groovy.lang.Closure event)
event - the "event" closure from the Grails build system
| Method Detail |
|---|
void testCaseEnd(java.lang.String name, java.lang.String out = null, java.lang.String err = null)
name - a logical name for the test "unit"
void testCaseStart(java.lang.String name)
name - a logical name for the test "unit"
void testEnd(java.lang.String name)
name - a logical name for the testfailure - a description of the failureisError - true if this failure was due to an indirect error,
false if this failure was a direct assertion failure or incorrect assumption
void testFailure(java.lang.String name, java.lang.Throwable failure, boolean isError = false)
name - a logical name for the testfailure - the throwable raised from the failureisError - true if this failure was due to an indirect error,
false if this failure was a direct assertion failure or incorrect assumption
void testFailure(java.lang.String name, java.lang.String failure = null, boolean isError = false)
name - a logical name for the testfailure - a description of the failureisError - true if this failure was due to an indirect error,
false if this failure was a direct assertion failure or incorrect assumption
void testStart(java.lang.String name)
name - a logical name for the test
Groovy Documentation