|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.pyant.tasks.PythonBaseTask
org.pyant.tasks.PythonInteractiveBaseTask
org.pyant.tasks.PythonTestTask
org.pyant.tasks.PythonCoverageTask
public class PythonCoverageTask
Runs coverage.py and outputs a colorized visualisation of coverage.
Sample usage:pythonpath is PYTHONPATH, of course (optional)
<tests> contains tests to run.
http://nedbatchelder.com/code/modules/coverage.html,
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/491274| Field Summary | |
|---|---|
protected File |
coverage
` Location of coverage.py |
protected File |
reportsdir
|
| Fields inherited from class org.pyant.tasks.PythonTestTask |
|---|
dir, filesets, packagedtests, testrunner |
| 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 | |
|---|---|
PythonCoverageTask()
|
|
| Method Summary | |
|---|---|
void |
addSrc(org.apache.tools.ant.types.FileSet src)
|
void |
addTests(org.apache.tools.ant.types.FileSet tests)
|
void |
execute()
Main entry point. |
void |
setCoverage(File coverage)
|
void |
setReportsdir(File reportsDir)
|
| Methods inherited from class org.pyant.tasks.PythonTestTask |
|---|
addFileSet, getModulesArg, setDir, setPackagedtests, setTestRunner |
| 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 |
|---|
protected File coverage
protected File reportsdir
| Constructor Detail |
|---|
public PythonCoverageTask()
| Method Detail |
|---|
public void setCoverage(File coverage)
coveragepublic void addTests(org.apache.tools.ant.types.FileSet tests)
testspublic void addSrc(org.apache.tools.ant.types.FileSet src)
public void setReportsdir(File reportsDir)
public void execute()
execute in class PythonTestTaskTask.execute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||