Package io.karatelabs.output
Class HtmlReport.AggregateBuilder
java.lang.Object
io.karatelabs.output.HtmlReport.AggregateBuilder
- Enclosing class:
HtmlReport
Builder for aggregating multiple JSON Lines files into a single HTML report.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Generate the aggregated HTML report.Add a JSON Lines file to aggregate.Add a JSON Lines file to aggregate.Set the output directory for the aggregated report.Set the output directory for the aggregated report.
-
Constructor Details
-
AggregateBuilder
public AggregateBuilder()
-
-
Method Details
-
json
Add a JSON Lines file to aggregate.- Parameters:
path- path to the JSON Lines file- Returns:
- this builder
-
json
Add a JSON Lines file to aggregate.- Parameters:
path- path to the JSON Lines file- Returns:
- this builder
-
outputDir
Set the output directory for the aggregated report.- Parameters:
dir- output directory path- Returns:
- this builder
-
outputDir
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
-