hudson.plugins.jacoco.report
Class CoverageReport

java.lang.Object
  extended by hudson.plugins.jacoco.model.CoverageObject<SELF>
      extended by hudson.plugins.jacoco.report.AbstractReport<PARENT,SELF>
          extended by hudson.plugins.jacoco.report.AggregatedReport<CoverageReport,CoverageReport,PackageReport>
              extended by 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

Field Summary
 JacocoHealthReportThresholds healthReports
           
 
Fields inherited from class hudson.plugins.jacoco.model.CoverageObject
branch, clazz, complexity, instruction, line, maxBranch, maxClazz, maxComplexity, maxInstruction, maxLine, maxMethod, method
 
Constructor Summary
CoverageReport(JacocoBuildAction action, ExecutionFileLoader executionFileLoader)
          Loads the exec files using JaCoCo API.
 
Method Summary
 org.kohsuke.stapler.HttpResponse doJacocoExec()
          Serves a single jacoco.exec file that merges all that have been recorded.
 hudson.model.AbstractBuild<?,?> getBuild()
          Gets the build object that owns the whole coverage report tree.
 CoverageReport getPreviousResult()
          Gets the corresponding coverage report object in the previous run that has the record.
protected  void printRatioCell(boolean failed, Coverage ratio, StringBuilder buf)
           
protected  void printRatioTable(Coverage ratio, StringBuilder buf)
           
 void setThresholds(JacocoHealthReportThresholds healthReports)
           
 
Methods inherited from class hudson.plugins.jacoco.report.AggregatedReport
add, getChildren, getDynamic, hasChildren, hasChildrenClassCoverage, hasChildrenLineCoverage, setFailed, setParent
 
Methods inherited from class hudson.plugins.jacoco.report.AbstractReport
addCoverage, getDisplayName, getName, getParent, setName
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

healthReports

public JacocoHealthReportThresholds healthReports
Constructor Detail

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
Method Detail

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.