public class CloverPassTask extends AbstractCloverTask
Modifier and Type | Class and Description |
---|---|
static class |
CloverPassTask.PackageRequirement
Inner class to gather the package level pass/fail coverage targets.
|
config, debug
Constructor and Description |
---|
CloverPassTask() |
Modifier and Type | Method and Description |
---|---|
void |
addPackage(CloverPassTask.PackageRequirement requirement)
Add a apcage spec to the list of packages to be checked for coverage.
|
void |
addTestResults(org.apache.tools.ant.types.FileSet fileset) |
void |
addTestSources(org.apache.tools.ant.types.FileSet fileset) |
void |
cloverExecute()
Do the work - checking the overall and per-package coverage against
the givenm targets.
|
Percentage |
getConditionalTarget() |
String |
getFailureProperty() |
File |
getHistorydir() |
Percentage |
getMethodTarget() |
Percentage |
getStatementTarget() |
List |
getTestSources() |
double |
getThreshold() |
void |
init() |
void |
setCodeType(String codeTypeAsString) |
void |
setConditionalTarget(Percentage conditionalTarget) |
void |
setFailureProperty(String failureProperty) |
void |
setFilter(String filterSpec)
set the filter which controls which items are included in the log report.
|
void |
setHaltOnFailure(boolean haltOnFailure)
Set the flag indicating whether the build will be failed for
failing to meet a target coverage.
|
void |
setHistorydir(File historydir) |
void |
setIncludeFailedTestCoverage(boolean include) |
void |
setMethodTarget(Percentage methodTarget) |
void |
setSpan(Interval span) |
void |
setStatementTarget(Percentage statementTarget) |
void |
setTarget(Percentage percentValue)
Set the overall system coverage target
|
void |
setThreshold(Percentage threshold) |
execute, getInitString, resolveInitString, setDebug, setInitString, setTmpDir, validate
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setCodeType(String codeTypeAsString)
public void init() throws org.apache.tools.ant.BuildException
init
in class AbstractCloverTask
org.apache.tools.ant.BuildException
public void addPackage(CloverPassTask.PackageRequirement requirement)
requirement
- the package rquirement including the apckage name
and percentage coverage required.public void setHistorydir(File historydir)
public File getHistorydir()
public void setThreshold(Percentage threshold)
public double getThreshold()
public void setTarget(Percentage percentValue)
percentValue
- the percentage coverage target for the buildpublic Percentage getMethodTarget()
public void setMethodTarget(Percentage methodTarget)
public Percentage getStatementTarget()
public void setStatementTarget(Percentage statementTarget)
public Percentage getConditionalTarget()
public void setConditionalTarget(Percentage conditionalTarget)
public void setFailureProperty(String failureProperty)
public String getFailureProperty()
public void setFilter(String filterSpec)
filterSpec
- a comma separated set of values denoting the
items to include in the report.public void setSpan(Interval span)
public void addTestResults(org.apache.tools.ant.types.FileSet fileset)
public void setIncludeFailedTestCoverage(boolean include)
public void addTestSources(org.apache.tools.ant.types.FileSet fileset)
public List getTestSources()
public void setHaltOnFailure(boolean haltOnFailure)
haltOnFailure
- true if the build is to fail when targets are not met.public void cloverExecute()
cloverExecute
in class AbstractCloverTask
Copyright © 2023 OpenClover.org. All rights reserved.