externalHtmlReportGenerator
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externalaggregator: SingleSourceAggregator
externaltemplateWriter: ReportTemplateWriter
externaloptionalstage: Stage
Returns HtmlReportGenerator
Methods
staticexternalfromJSON
Creates a StageCrewMemberBuilder that will instantiate the
HtmlReportGeneratorwith the provided HtmlReporterConfig.Parameters
externalconfig: HtmlReporterConfig = {}
Configuration options for the generator. All properties are optional.
Returns StageCrewMemberBuilder<HtmlReportGenerator>
externalassignedTo
Parameters
externalstage: Stage
Returns StageCrewMember
externalnotifyOf
Parameters
externalevent: DomainEvent
Returns void
externalgenerate
Generates the report. Can be called directly for standalone/CLI usage.
Returns void
A
StageCrewMemberthat aggregates archived test run data and generates the HTML report (data.js+index.html).Unlike HtmlReporter, this crew member does not collect test data during the run. It only performs the aggregation and HTML generation step. Use it when data collection is handled separately by TestRunArchiver — for example, in CI pipelines where parallel jobs each archive their own data, and a final step aggregates everything into one report.
The
serenity-js-html-reporter aggregateCLI command usesHtmlReportGeneratorinternally.When to use
HtmlReportGeneratorinstead ofHtmlReporterUse HtmlReporter (the default) when you want a single crew member to handle both data collection and report generation in the same process.
Use
HtmlReportGeneratorwhen:Registering as a crew member
Standalone usage via CLI
When test data has been archived by TestRunArchiver in prior CI steps, generate the report using the CLI:
Programmatic registration with
fromJSON