public class XmlTestReport
extends RunListener
FormatterElement
Constructor and Description |
---|
XmlTestReport()
No arg constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(Description test,
java.lang.Throwable t)
Interface TestListener.
|
void |
addFailure(Description test,
AssertionFailedError t)
Interface TestListener for JUnit > 3.4.
|
void |
addFailure(Description test,
java.lang.Throwable t)
Interface TestListener for JUnit <= 3.4.
|
void |
endTest(Description test)
Interface TestListener.
|
void |
endTestSuite(int runCount,
int failureCount,
int errorCount,
int skipCount,
long runTime)
The whole testsuite ended.
|
void |
formatSkip(Description test,
java.lang.String message) |
void |
setOutput(java.io.OutputStream out)
.
|
void |
setSystemError(java.lang.String out)
.
|
void |
setSystemOutput(java.lang.String out)
.
|
void |
startTest(Description t)
Interface TestListener.
|
void |
startTestSuite(java.lang.String name)
The whole testsuite started.
|
void |
testAssumptionFailure(Description test,
java.lang.Throwable failure) |
void |
testFailure(Failure failure) |
void |
testFinished(Description description) |
void |
testIgnored(Description test) |
void |
testStarted(Description description) |
public void setOutput(java.io.OutputStream out)
public void setSystemOutput(java.lang.String out)
public void setSystemError(java.lang.String out)
public void startTestSuite(java.lang.String name)
suite
- the testsuite.public void endTestSuite(int runCount, int failureCount, int errorCount, int skipCount, long runTime)
suite
- the testsuite.BuildException
- on error.public void startTest(Description t)
A new Test is started.
t
- the test.public void endTest(Description test)
A Test is finished.
test
- the test.public void addFailure(Description test, java.lang.Throwable t)
A Test failed.
test
- the test.t
- the exception.public void addFailure(Description test, AssertionFailedError t)
A Test failed.
test
- the test.t
- the assertion.public void addError(Description test, java.lang.Throwable t)
An error occurred while running the test.
test
- the test.t
- the error.public void testIgnored(Description test)
public void formatSkip(Description test, java.lang.String message)
public void testAssumptionFailure(Description test, java.lang.Throwable failure)
public void testFailure(Failure failure) throws java.lang.Exception
java.lang.Exception
public void testFinished(Description description) throws java.lang.Exception
java.lang.Exception
public void testStarted(Description description) throws java.lang.Exception
java.lang.Exception