com.carrotsearch.ant.tasks.junit4.listeners.antxml
Class AntXmlReport

java.lang.Object
  extended by com.carrotsearch.ant.tasks.junit4.listeners.antxml.AntXmlReport
All Implemented Interfaces:
AggregatedEventListener

public class AntXmlReport
extends Object
implements AggregatedEventListener

A report listener that produces XML files compatible with those produced by ANT's default junit task. These files do not include full information but many tools can parse them.


Constructor Summary
AntXmlReport()
           
 
Method Summary
 void addConfiguredTokenFilter(org.apache.tools.ant.filters.TokenFilter filter)
          Adds method name filter.
 void onSuiteResult(AggregatedSuiteResultEvent e)
          Emit information about all of suite's tests.
 void setDir(File dir)
          Output directory to write reports to.
 void setMavenExtensions(boolean mavenExtensions)
          Emit maven elements in the XML (extensions compared to ANT).
 void setOuter(JUnit4 junit4)
          Link to the container.
 void setOutputStreams(boolean outputStreams)
          Include output streams? Mind that with large outputs the report may OOM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntXmlReport

public AntXmlReport()
Method Detail

setDir

public void setDir(File dir)
Output directory to write reports to.


setOutputStreams

public void setOutputStreams(boolean outputStreams)
Include output streams? Mind that with large outputs the report may OOM.


setMavenExtensions

public void setMavenExtensions(boolean mavenExtensions)
Emit maven elements in the XML (extensions compared to ANT).


addConfiguredTokenFilter

public void addConfiguredTokenFilter(org.apache.tools.ant.filters.TokenFilter filter)
Adds method name filter.


setOuter

public void setOuter(JUnit4 junit4)
Description copied from interface: AggregatedEventListener
Link to the container. Listener can throw BuildException if parameter validation doesn't succeed, for example.

Specified by:
setOuter in interface AggregatedEventListener

onSuiteResult

public void onSuiteResult(AggregatedSuiteResultEvent e)
Emit information about all of suite's tests.



Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.