Package hudson.plugins.jacoco.portlet
Class JacocoLoadData
- java.lang.Object
-
- hudson.plugins.jacoco.portlet.JacocoLoadData
-
public final class JacocoLoadData extends Object
Load data of JaCoCo coverage results used by chart or grid.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JacocoCoverageResultSummary
getResult(Run<?,?> run)
Get the JaCoCo coverage result for a specific run.static JacocoCoverageResultSummary
getResultSummary(Collection<Job<?,?>> jobs)
Summarize the last coverage results of all jobs.static Map<String,JacocoCoverageResultSummary>
loadChartDataWithinRange(List<Job<?,?>> jobs, int daysNumber)
Get JaCoCo coverage results of all jobs and store into a sorted HashMap by date.
-
-
-
Method Detail
-
loadChartDataWithinRange
public static Map<String,JacocoCoverageResultSummary> loadChartDataWithinRange(List<Job<?,?>> jobs, int daysNumber)
Get JaCoCo coverage results of all jobs and store into a sorted HashMap by date.- Parameters:
jobs
- jobs of Dashboard viewdaysNumber
- number of days- Returns:
- Map The sorted summaries
-
getResult
public static JacocoCoverageResultSummary getResult(Run<?,?> run)
Get the JaCoCo coverage result for a specific run.- Parameters:
run
- a job execution- Returns:
- JaCoCoCoverageTestResult the coverage result
-
getResultSummary
public static JacocoCoverageResultSummary getResultSummary(Collection<Job<?,?>> jobs)
Summarize the last coverage results of all jobs. If a job doesn't include any coverage, add zero.- Parameters:
jobs
- a final Collection of Job objects- Returns:
- JacocoCoverageResultSummary the result summary
-
-