// Path: junitperf-core/src/main/java/com/github/noconnor/junitperf/reporting/providers/HtmlReportGenerator.java
// @Slf4j
// public class HtmlReportGenerator implements ReportGenerator {
// 
//   private static final String DEFAULT_REPORT_PATH = getProperty("user.dir") + "/build/reports/junitperf_report.html";
//   private static final String REPORT_TEMPLATE = "templates/report.twig";
// 
//   private final String reportPath;
//   private final Set<EvaluationContext> history;
// 
//   public HtmlReportGenerator() {
//     this(DEFAULT_REPORT_PATH);
//   }
// 
//   @SuppressWarnings("WeakerAccess")
//   public HtmlReportGenerator(String reportPath) {
//     this.reportPath = reportPath;
//     this.history = new LinkedHashSet<>();
//   }
// 
//   @Override
//   public void generateReport(LinkedHashSet<EvaluationContext> testContexts) {
//     history.addAll(testContexts);
//     renderTemplate();
//   }
// 
//   private void renderTemplate() {
//     Path outputPath = Paths.get(reportPath);
//     JtwigTemplate template = JtwigTemplate.classpathTemplate(REPORT_TEMPLATE);
//     JtwigModel model = JtwigModel.newModel().with("contextData", history);
//     try {
//       Files.createDirectories(outputPath.getParent());
//       log.info("Rendering report to: " + outputPath);
//       template.render(model, Files.newOutputStream(outputPath));
//     } catch (IOException e) {
//       throw new IllegalStateException(e);
//     }
//   }
// 
//   @Override
//   public String getReportPath() {
//     return reportPath;
//   }
// 
// }


import com.github.noconnor.junitperf.reporting.providers.HtmlReportGenerator;
import static java.lang.System.getProperty;
package com.github.noconnor.junitperf.examples.utils;



public class ReportingUtils {

  public static HtmlReportGenerator newHtmlReporter(String fileName){
// Path: junitperf-core/src/main/java/com/github/noconnor/junitperf/reporting/providers/HtmlReportGenerator.java
// @Slf4j
// public class HtmlReportGenerator implements ReportGenerator {
// 
//   private static final String DEFAULT_REPORT_PATH = getProperty("user.dir") + "/build/reports/junitperf_report.html";
//   private static final String REPORT_TEMPLATE = "templates/report.twig";
// 
//   private final String reportPath;
//   private final Set<EvaluationContext> history;
// 
//   public HtmlReportGenerator() {
//     this(DEFAULT_REPORT_PATH);
//   }
// 
//   @SuppressWarnings("WeakerAccess")
//   public HtmlReportGenerator(String reportPath) {
//     this.reportPath = reportPath;
//     this.history = new LinkedHashSet<>();
//   }
// 
//   @Override
//   public void generateReport(LinkedHashSet<EvaluationContext> testContexts) {
//     history.addAll(testContexts);
//     renderTemplate();
//   }
// 
//   private void renderTemplate() {
//     Path outputPath = Paths.get(reportPath);
//     JtwigTemplate template = JtwigTemplate.classpathTemplate(REPORT_TEMPLATE);
//     JtwigModel model = JtwigModel.newModel().with("contextData", history);
//     try {
//       Files.createDirectories(outputPath.getParent());
//       log.info("Rendering report to: " + outputPath);
//       template.render(model, Files.newOutputStream(outputPath));
//     } catch (IOException e) {
//       throw new IllegalStateException(e);
//     }
//   }
// 
//   @Override
//   public String getReportPath() {
//     return reportPath;
//   }
// 
// }


// Path: junit4-examples/src/test/java/com/github/noconnor/junitperf/examples/utils/ReportingUtils.java
import com.github.noconnor.junitperf.reporting.providers.HtmlReportGenerator;
import static java.lang.System.getProperty;

package com.github.noconnor.junitperf.examples.utils;



public class ReportingUtils {

  public static HtmlReportGenerator newHtmlReporter(String fileName){
    return new HtmlReportGenerator(getProperty("user.dir") + "/build/reports/" + fileName);