org.apache.maven.plugin.surefire.report
Class StatelessXmlReporter
java.lang.Object
  
org.apache.maven.plugin.surefire.report.StatelessXmlReporter
public class StatelessXmlReporter
- extends Object
 
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>
  [...]
- Author:
 
  - Kristian Rosenvold
 
- See Also:
 - Ant's format enhancement proposal
      (not yet implemented by Ant 1.8.2)
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
StatelessXmlReporter
public StatelessXmlReporter(File reportsDirectory,
                            String reportNameSuffix,
                            boolean trimStackTrace)
testSetCompleted
public void testSetCompleted(WrappedReportEntry testSetReportEntry,
                             TestSetStats testSetStats)
                      throws ReporterException
- Throws:
 ReporterException
 
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.