Package org.jacoco.report.html

Examples of org.jacoco.report.html.HTMLFormatter


          throw new BuildException(
              "Destination directory or file must be supplied for html report");
        }
        output = new FileMultiReportOutput(destdir);
      }
      final HTMLFormatter formatter = new HTMLFormatter();
      formatter.setReportOutput(output);
      formatter.setFooterText(footer);
      formatter.setOutputEncoding(encoding);
      formatter.setLocale(locale);
      return formatter;
    }
View Full Code Here


              "Destination directory or file must be supplied for html report",
              getLocation());
        }
        output = new FileMultiReportOutput(destdir);
      }
      final HTMLFormatter formatter = new HTMLFormatter();
      formatter.setFooterText(footer);
      formatter.setOutputEncoding(encoding);
      formatter.setLocale(locale);
      return formatter.createVisitor(output);
    }
View Full Code Here

        getOutputDirectoryFile(), "jacoco.xml"))));
    final CSVFormatter csvFormatter = new CSVFormatter();
    csvFormatter.setOutputEncoding(outputEncoding);
    visitors.add(csvFormatter.createVisitor(new FileOutputStream(new File(
        getOutputDirectoryFile(), "jacoco.csv"))));
    final HTMLFormatter htmlFormatter = new HTMLFormatter();
    htmlFormatter.setOutputEncoding(outputEncoding);
    htmlFormatter.setLocale(locale);
    visitors.add(htmlFormatter.createVisitor(new FileMultiReportOutput(
        getOutputDirectoryFile())));
    return new MultiReportVisitor(visitors);
  }
View Full Code Here

  private void createReport(final IBundleCoverage bundleCoverage)
      throws IOException {

    // Create a concrete report visitor based on some supplied
    // configuration. In this case we use the defaults
    final HTMLFormatter htmlFormatter = new HTMLFormatter();
    final IReportVisitor visitor = htmlFormatter
        .createVisitor(new FileMultiReportOutput(reportDirectory));

    // Initialize the report with all of the execution and session
    // information. At this point the report doesn't know about the
    // structure of the report being created
View Full Code Here

  }

  private IReportVisitor createFormatter() throws IOException {
    final File file = new File(destination);
    if (HTML.equals(format)) {
      HTMLFormatter htmlFormatter = new HTMLFormatter();
      htmlFormatter.setFooterText(session.getDescription());
      return htmlFormatter.createVisitor(new FileMultiReportOutput(file));
    }
    final OutputStream out = new BufferedOutputStream(
        new FileOutputStream(file));
    switch (format) {
    case HTMLZIP:
      final HTMLFormatter htmlFormatter = new HTMLFormatter();
      htmlFormatter.setFooterText(session.getDescription());
      return htmlFormatter.createVisitor(new ZipMultiReportOutput(out));
    case XML:
      final XMLFormatter xmlFormatter = new XMLFormatter();
      return xmlFormatter.createVisitor(out);
    case CSV:
      final CSVFormatter csvFormatter = new CSVFormatter();
View Full Code Here

TOP

Related Classes of org.jacoco.report.html.HTMLFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.