Examples of HTMLFormatter


Examples of org.jacoco.report.html.HTMLFormatter

              "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

Examples of org.jacoco.report.html.HTMLFormatter

  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

Examples of org.jacoco.report.html.HTMLFormatter

  }

  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

Examples of org.jacoco.report.html.HTMLFormatter

  }

  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

Examples of org.jacoco.report.html.HTMLFormatter

    final CSVFormatter formatter = new CSVFormatter();
    formatter.setOutputEncoding(outputEncoding);
    visitors.add(formatter.createVisitor(new FileOutputStream(new File(
        outputDirectory, "jacoco.csv"))));

    final HTMLFormatter htmlFormatter = new HTMLFormatter();
    // formatter.setFooterText(footer);
    htmlFormatter.setOutputEncoding(outputEncoding);
    // formatter.setLocale(locale);
    visitors.add(htmlFormatter.createVisitor(new FileMultiReportOutput(
        outputDirectory)));

    return new MultiReportVisitor(visitors);
  }
View Full Code Here

Examples of org.jacoco.report.html.HTMLFormatter

  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

Examples of org.jacoco.report.html.HTMLFormatter

    final CSVFormatter formatter = new CSVFormatter();
    formatter.setOutputEncoding(outputEncoding);
    visitors.add(formatter.createVisitor(new FileOutputStream(new File(
        outputDirectory, "jacoco.csv"))));

    final HTMLFormatter htmlFormatter = new HTMLFormatter();
    // formatter.setFooterText(footer);
    htmlFormatter.setOutputEncoding(outputEncoding);
    // formatter.setLocale(locale);
    visitors.add(htmlFormatter.createVisitor(new FileMultiReportOutput(
        outputDirectory)));

    return new MultiReportVisitor(visitors);
  }
View Full Code Here

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.setFooterText(footer);
      formatter.setOutputEncoding(encoding);
      formatter.setLocale(locale);
      return formatter.createVisitor(output);
    }
View Full Code Here

Examples of org.jacoco.report.html.HTMLFormatter

    final CSVFormatter formatter = new CSVFormatter();
    formatter.setOutputEncoding(outputEncoding);
    visitors.add(formatter.createVisitor(new FileOutputStream(new File(
        outputDirectory, "jacoco.csv"))));

    final HTMLFormatter htmlFormatter = new HTMLFormatter();
    // formatter.setFooterText(footer);
    htmlFormatter.setOutputEncoding(outputEncoding);
    // formatter.setLocale(locale);
    visitors.add(htmlFormatter.createVisitor(new FileMultiReportOutput(
        outputDirectory)));

    return new MultiReportVisitor(visitors);
  }
View Full Code Here

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.setFooterText(footer);
      formatter.setOutputEncoding(encoding);
      formatter.setLocale(locale);
      return formatter.createVisitor(output);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.