Class HtmlReportWriter

java.lang.Object
com.arc_e_tect.gradle.jacoco.report.HtmlReportWriter

public class HtmlReportWriter extends Object
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 Details

    • HtmlReportWriter

      public HtmlReportWriter()
      Creates a new HtmlReportWriter.
  • Method Details

    • write

      public void write(List<ExcludedElement> elements, String annotationName, File outputDir) throws IOException
      Writes an HTML report to index.html inside outputDir.
      Parameters:
      elements - the excluded elements to report
      annotationName - the annotation name displayed in the report header
      outputDir - target directory; created if it does not exist
      Throws:
      IOException - if the output file cannot be written