Class HtmlReportWriter
java.lang.Object
com.arc_e_tect.gradle.jacoco.report.HtmlReportWriter
Writes an HTML report styled after Gradle's built-in test report.
The report includes:
- A summary bar (total exclusions, grouped by element type)
- A table grouped by package → class → member
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(List<ExcludedElement> elements, String labelValue, File outputDir) Writes an HTML report toindex.htmlinsideoutputDir.voidwrite(List<ExcludedElement> elements, String valueLabel, String labelName, File outputDir, String outputFileName) Writes an HTML report tooutputFileNameinsideoutputDir.
-
Constructor Details
-
HtmlReportWriter
public HtmlReportWriter()Creates a newHtmlReportWriter.
-
-
Method Details
-
write
public void write(List<ExcludedElement> elements, String labelValue, File outputDir) throws IOException Writes an HTML report toindex.htmlinsideoutputDir.- Parameters:
elements- the excluded elements to reportlabelValue- value displayed in the report subtitleoutputDir- target directory; created if it does not exist- Throws:
IOException- if the output file cannot be written
-
write
public void write(List<ExcludedElement> elements, String valueLabel, String labelName, File outputDir, String outputFileName) throws IOException Writes an HTML report tooutputFileNameinsideoutputDir.- Parameters:
elements- the excluded elements to reportvalueLabel- value shown in the report subtitle (e.g. annotation name)labelName- subtitle label (e.g. "Annotation" or "Source")outputDir- target directory; created if it does not existoutputFileName- target HTML file name- Throws:
IOException- if the output file cannot be written
-