org.pyant.tasks
Class PythonTestTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.pyant.tasks.PythonBaseTask
              extended by org.pyant.tasks.PythonInteractiveBaseTask
                  extended by org.pyant.tasks.PythonTestTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PythonCoverageTask

public class PythonTestTask
extends PythonInteractiveBaseTask

Author:
Ron Smith Ant task which executes Python unit tests.

Field Summary
protected  File dir
          Working directory to execute tests from.
protected  ArrayList filesets
          Filesets of the unit tests to execute.
protected  boolean packagedtests
           
protected  String testrunner
          Python class to be used to execute unit tests.
 
Fields inherited from class org.pyant.tasks.PythonInteractiveBaseTask
script
 
Fields inherited from class org.pyant.tasks.PythonBaseTask
failonerror, optimize, python, pythonpath
 
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
 
Constructor Summary
PythonTestTask()
           
 
Method Summary
 void addFileSet(org.apache.tools.ant.types.FileSet fs)
           
 void execute()
           
protected  String getModulesArg(org.apache.tools.ant.Project project)
           
 void setDir(File dir)
           
 void setPackagedtests(boolean t)
           
 void setTestRunner(String s)
           
 
Methods inherited from class org.pyant.tasks.PythonInteractiveBaseTask
addCommandlineArgs, createStreamHandler
 
Methods inherited from class org.pyant.tasks.PythonBaseTask
createCommandline, createExecute, execExecuteTask, executeScript, failureOcurred, fixFilePath, getCommandline, getPython, prepCommandline, setFailonerror, setOptimize, setOptimizeArgument, setPython, setPythonpath, setPythonPathInExecute, setPythonpathref
 
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 Detail

filesets

protected ArrayList filesets
Filesets of the unit tests to execute.


dir

protected File dir
Working directory to execute tests from.


testrunner

protected String testrunner
Python class to be used to execute unit tests. If not set, uses default unit test runner.


packagedtests

protected boolean packagedtests
Constructor Detail

PythonTestTask

public PythonTestTask()
Method Detail

execute

public void execute()
Overrides:
execute in class org.apache.tools.ant.Task

getModulesArg

protected String getModulesArg(org.apache.tools.ant.Project project)
Parameters:
project -

setPackagedtests

public void setPackagedtests(boolean t)

addFileSet

public void addFileSet(org.apache.tools.ant.types.FileSet fs)

setDir

public void setDir(File dir)

setTestRunner

public void setTestRunner(String s)


Copyright © 2010. All Rights Reserved.