Class HtmlReport

java.lang.Object
io.karatelabs.output.HtmlReport

public final class HtmlReport extends Object
Fluent API for HTML report aggregation across multiple test runs.

This class allows merging JSON Lines files from different test runs to create a combined HTML report. This is useful for aggregating results from:

  • Parallel test shards
  • Retry runs
  • Different environments

Example usage:

 HtmlReport.aggregate()
     .json("target/run1/karate-results.jsonl")
     .json("target/run2/karate-results.jsonl")
     .outputDir("target/combined-report")
     .generate();
 
  • Method Details

    • aggregate

      public static HtmlReport.AggregateBuilder aggregate()
      Start building an aggregate report.
      Returns:
      a new aggregate builder