Class JUnitReportTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
org.fest.swing.junit.ant.JUnitReportTask
All Implemented Interfaces:
Cloneable, org.apache.tools.ant.taskdefs.optional.junit.XMLConstants

public class JUnitReportTask extends org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
Aggregates all <junit> XML formatter test suite data under a specific directory and transforms the results via XSLT.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.tools.ant.types.Path
     

    Fields inherited from class org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator

    DEFAULT_DIR, DEFAULT_FILENAME, filesets, generatedId, toDir, toFile, transformers

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project

    Fields inherited from interface org.apache.tools.ant.taskdefs.optional.junit.XMLConstants

    ATTR_CLASSNAME, ATTR_ERRORS, ATTR_FAILURES, ATTR_ID, ATTR_MESSAGE, ATTR_NAME, ATTR_PACKAGE, ATTR_SKIPPED, ATTR_TESTS, ATTR_TIME, ATTR_TYPE, ATTR_VALUE, ERROR, FAILURE, HOSTNAME, PROPERTIES, PROPERTY, SYSTEM_ERR, SYSTEM_OUT, TESTCASE, TESTSUITE, TESTSUITES, TIMESTAMP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.tools.ant.types.Path
    Creates the current classpath.
    org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer
    Generate a report based on the document created by the merge.
    void
    setClasspath(org.apache.tools.ant.types.Path classpath)
    Sets an additional classpath.
    void
    setClasspathRef(org.apache.tools.ant.types.Reference r)
    Sets a reference to a classpath.

    Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator

    addFileSet, addTestSuite, createDocument, execute, getDestinationFile, getFiles, setTodir, setTofile, writeDOMTree

    Methods inherited from class org.apache.tools.ant.Task

    bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • classpath

      private org.apache.tools.ant.types.Path classpath
  • Constructor Details

    • JUnitReportTask

      public JUnitReportTask()
  • Method Details

    • createReport

      public org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer createReport()
      Generate a report based on the document created by the merge.
      Overrides:
      createReport in class org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
      Returns:
      the generated report.
    • setClasspath

      public void setClasspath(org.apache.tools.ant.types.Path classpath)
      Sets an additional classpath.
      Parameters:
      classpath - the additional classpath to append to the current one.
    • setClasspathRef

      public void setClasspathRef(org.apache.tools.ant.types.Reference r)
      Sets a reference to a classpath.
      Parameters:
      r - the reference to set.
    • createClasspath

      public org.apache.tools.ant.types.Path createClasspath()
      Creates the current classpath.
      Returns:
      the created classpath.