org.fest.swing.junit.ant
Class JUnitReportTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
              extended by 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.

Author:
Alex Ruiz

Field Summary
 
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_TESTS, ATTR_TIME, ATTR_TYPE, ATTR_VALUE, ERROR, FAILURE, HOSTNAME, PROPERTIES, PROPERTY, SYSTEM_ERR, SYSTEM_OUT, TESTCASE, TESTSUITE, TESTSUITES, TIMESTAMP
 
Constructor Summary
JUnitReportTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
          Creates the current classpath.
 org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer createReport()
          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
 

Constructor Detail

JUnitReportTask

public JUnitReportTask()
Method Detail

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.


Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.