Class CoverageTrendChart
- java.lang.Object
-
- com.parasoft.findings.jenkins.coverage.api.metrics.charts.CoverageTrendChart
-
public class CoverageTrendChart extends Object
Builds the Java side model for a trend chart showing the line and branch coverage of a project. The number of builds to consider is controlled by aChartModelConfiguration
instance. The created model object can be serialized to JSON (e.g., using theJacksonFacade
) and can be used 1:1 as ECharts configuration object in the corresponding JS file.- Author:
- Ullrich Hafner
- See Also:
JacksonFacade
-
-
Constructor Summary
Constructors Constructor Description CoverageTrendChart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.hm.hafner.echarts.line.LinesChartModel
create(Iterable<edu.hm.hafner.echarts.BuildResult<CoverageStatistics>> results, edu.hm.hafner.echarts.ChartModelConfiguration configuration)
Creates the chart for the specified results.
-
-
-
Method Detail
-
create
public edu.hm.hafner.echarts.line.LinesChartModel create(Iterable<edu.hm.hafner.echarts.BuildResult<CoverageStatistics>> results, edu.hm.hafner.echarts.ChartModelConfiguration configuration)
Creates the chart for the specified results.- Parameters:
results
- the forensics results to render - these results must be provided in descending order, i.e. the current * build is the head of the list, then the previous builds, and so onconfiguration
- the chart configuration to be used- Returns:
- the chart model, ready to be serialized to JSON
-
-