Class HtmlReport.AggregateBuilder

java.lang.Object
io.karatelabs.output.HtmlReport.AggregateBuilder
Enclosing class:
HtmlReport

public static class HtmlReport.AggregateBuilder extends Object
Builder for aggregating multiple JSON Lines files into a single HTML report.
  • Constructor Details

    • AggregateBuilder

      public AggregateBuilder()
  • Method Details

    • json

      public HtmlReport.AggregateBuilder json(String path)
      Add a JSON Lines file to aggregate.
      Parameters:
      path - path to the JSON Lines file
      Returns:
      this builder
    • json

      public HtmlReport.AggregateBuilder json(Path path)
      Add a JSON Lines file to aggregate.
      Parameters:
      path - path to the JSON Lines file
      Returns:
      this builder
    • outputDir

      public HtmlReport.AggregateBuilder outputDir(String dir)
      Set the output directory for the aggregated report.
      Parameters:
      dir - output directory path
      Returns:
      this builder
    • outputDir

      public HtmlReport.AggregateBuilder outputDir(Path dir)
      Set the output directory for the aggregated report.
      Parameters:
      dir - output directory path
      Returns:
      this builder
    • generate

      public void generate()
      Generate the aggregated HTML report.
      Throws:
      IllegalStateException - if no JSON Lines files or output directory specified