|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.surefire.report.AbstractReporter
org.apache.maven.plugin.surefire.report.XMLReporter
public class XMLReporter
XML format reporter writing to TEST-reportName[-suffix].xml file like written and read
by Ant's <junit> and
<junitreport> tasks,
then supported by many tools like CI servers.
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="suite name" [group="group"] tests="0" failures="0" errors="0" skipped="0" time="0,###.###">
<properties>
<property name="name" value="value"/>
[...]
</properties>
<testcase time="0,###.###" name="test name [classname="class name"] [group="group"]"/>
<testcase time="0,###.###" name="test name [classname="class name"] [group="group"]">
<error message="message" type="exception class name">stacktrace</error>
<system-out>system out content (present only if not empty)</system-out>
<system-err>system err content (present only if not empty)</system-err>
</testcase>
<testcase time="0,###.###" name="test name [classname="class name"] [group="group"]">
<failure message="message" type="exception class name">stacktrace</failure>
<system-out>system out content (present only if not empty)</system-out>
<system-err>system err content (present only if not empty)</system-err>
</testcase>
<testcase time="0,###.###" name="test name [classname="class name"] [group="group"]">
<skipped/>
</testcase>
[...]
| Constructor Summary | |
|---|---|
XMLReporter(boolean trimStackTrace,
File reportsDirectory)
|
|
XMLReporter(boolean trimStackTrace,
File reportsDirectory,
String reportNameSuffix)
|
|
| Method Summary | |
|---|---|
Iterator |
getResults()
|
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the same thread. |
void |
testError(org.apache.maven.surefire.report.ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with an error (non anticipated problem) |
void |
testFailed(org.apache.maven.surefire.report.ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with a failure (anticipated problem) |
void |
testSetCompleted(org.apache.maven.surefire.report.ReportEntry report)
Indicates end of a given test-set |
void |
testSetStarting(org.apache.maven.surefire.report.ReportEntry report)
Indicates the start of a given test-set |
void |
testSkipped(org.apache.maven.surefire.report.ReportEntry report)
|
void |
testSucceeded(org.apache.maven.surefire.report.ReportEntry report)
Event fired when a test ended successfully |
void |
writeMessage(byte[] b,
int off,
int len)
|
void |
writeMessage(String message)
Writes a message that will be displayed in all free-text format reporters. |
| Methods inherited from class org.apache.maven.plugin.surefire.report.AbstractReporter |
|---|
testStarting |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLReporter(boolean trimStackTrace,
File reportsDirectory)
public XMLReporter(boolean trimStackTrace,
File reportsDirectory,
String reportNameSuffix)
| Method Detail |
|---|
public void writeMessage(String message)
Reporter
message - The message to write.
public void writeMessage(byte[] b,
int off,
int len)
writeMessage in interface ReporterwriteMessage in class AbstractReporter
public void testSetStarting(org.apache.maven.surefire.report.ReportEntry report)
throws org.apache.maven.surefire.report.ReporterException
Reporter
testSetStarting in interface ReportertestSetStarting in class AbstractReporterreport - the report entry describing the testset
org.apache.maven.surefire.report.ReporterException - When reporting fails
public void testSetCompleted(org.apache.maven.surefire.report.ReportEntry report)
throws org.apache.maven.surefire.report.ReporterException
Reporter
testSetCompleted in interface ReportertestSetCompleted in class AbstractReporterreport - the report entry describing the testset
org.apache.maven.surefire.report.ReporterException - When reporting failspublic void testSucceeded(org.apache.maven.surefire.report.ReportEntry report)
Reporter
testSucceeded in interface ReportertestSucceeded in class AbstractReporterreport - The report entry to log for
public void testError(org.apache.maven.surefire.report.ReportEntry report,
String stdOut,
String stdErr)
Reporter
testError in interface ReportertestError in class AbstractReporterreport - The report entry to log forstdOut - standard output from the test casestdErr - error output from the test case
public void testFailed(org.apache.maven.surefire.report.ReportEntry report,
String stdOut,
String stdErr)
Reporter
testFailed in interface ReportertestFailed in class AbstractReporterreport - The report entry to log forstdOut - standard output from the test casestdErr - error output from the test casepublic void testSkipped(org.apache.maven.surefire.report.ReportEntry report)
testSkipped in interface ReportertestSkipped in class AbstractReporterpublic Iterator getResults()
public void reset()
Reporter
reset in interface Reporterreset in class AbstractReporter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||