hudson.plugins.jacoco.report
Class CoverageReport
java.lang.Object
hudson.plugins.jacoco.model.CoverageObject<SELF>
hudson.plugins.jacoco.report.AbstractReport<PARENT,SELF>
hudson.plugins.jacoco.report.AggregatedReport<CoverageReport,CoverageReport,PackageReport>
hudson.plugins.jacoco.report.CoverageReport
- All Implemented Interfaces:
- hudson.model.ModelObject
public final class CoverageReport
- extends AggregatedReport<CoverageReport,CoverageReport,PackageReport>
Root object of the coverage report.
- Author:
- Kohsuke Kawaguchi, Ognjen Bubalo
| Fields inherited from class hudson.plugins.jacoco.model.CoverageObject |
branch, clazz, complexity, instruction, line, maxBranch, maxClazz, maxComplexity, maxInstruction, maxLine, maxMethod, method |
| Methods inherited from class hudson.plugins.jacoco.model.CoverageObject |
doGraph, getApi, getBranchCoverage, getClassCoverage, getComplexityScore, getInstructionCoverage, getLineCoverage, getMaxBranch, getMaxClazz, getMaxComplexity, getMaxInstruction, getMaxLine, getMaxMethod, getMethodCoverage, hasClassCoverage, hasLineCoverage, isFailed, printFourCoverageColumns, setAllCovTypes, setCoverage, setMaxBranch, setMaxClazz, setMaxComplexity, setMaxInstruction, setMaxLine, setMaxMethod, toString |
healthReports
public JacocoHealthReportThresholds healthReports
CoverageReport
public CoverageReport(JacocoBuildAction action,
ExecutionFileLoader executionFileLoader)
- Loads the exec files using JaCoCo API. Creates the reporting objects and the report tree.
- Parameters:
action - reports -
- Throws:
IOException
printRatioCell
protected void printRatioCell(boolean failed,
Coverage ratio,
StringBuilder buf)
- Overrides:
printRatioCell in class CoverageObject<CoverageReport>
printRatioTable
protected void printRatioTable(Coverage ratio,
StringBuilder buf)
- Overrides:
printRatioTable in class CoverageObject<CoverageReport>
getPreviousResult
public CoverageReport getPreviousResult()
- Description copied from class:
CoverageObject
- Gets the corresponding coverage report object in the previous
run that has the record.
- Overrides:
getPreviousResult in class AbstractReport<CoverageReport,CoverageReport>
- Returns:
- null if no earlier record was found.
getBuild
public hudson.model.AbstractBuild<?,?> getBuild()
- Description copied from class:
CoverageObject
- Gets the build object that owns the whole coverage report tree.
- Overrides:
getBuild in class AbstractReport<CoverageReport,CoverageReport>
doJacocoExec
@WebMethod(name="jacoco.exec")
public org.kohsuke.stapler.HttpResponse doJacocoExec()
throws IOException
- Serves a single jacoco.exec file that merges all that have been recorded.
- Throws:
IOException
setThresholds
public void setThresholds(JacocoHealthReportThresholds healthReports)
Copyright © 2004-2014 Hudson. All Rights Reserved.