externalHtmlReporter
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externalarchiver: TestRunArchiver
externalgenerator: HtmlReportGenerator
Returns HtmlReporter
Methods
staticexternalfromJSON
Creates a StageCrewMemberBuilder that will instantiate the
HtmlReporterwith the provided HtmlReporterConfig.This is the programmatic equivalent of registering the reporter as a tuple:
['@serenity-js/html-reporter', config].Parameters
externalconfig: HtmlReporterConfig = {}
Configuration options for the reporter. All properties are optional.
Returns StageCrewMemberBuilder<HtmlReporter>
externalassignedTo
Parameters
externalstage: Stage
Returns StageCrewMember
externalnotifyOf
Parameters
externalevent: DomainEvent
Returns void
A
StageCrewMemberthat produces a self-contained static HTML report with trend analysis, consistency classification, and living documentation.HtmlReporterhandles the full lifecycle — it collects test data during the run (screenshots, activity trees, domain events) AND generates the aggregated HTML report when the test run finishes. Internally, it composes TestRunArchiver (data collection) and HtmlReportGenerator (report generation).For CI pipelines where data collection and report generation happen in separate steps, use TestRunArchiver and HtmlReportGenerator independently instead.
Registering HTML Reporter with Playwright Test
Registering HTML Reporter with WebdriverIO
Registering HTML Reporter with Cucumber
Registering HTML Reporter with Mocha
Registering HTML Reporter with Jasmine
Using string-based registration with defaults
When no configuration is needed, register the reporter as a module path string:
Using
fromJSONfor programmatic registrationThe HtmlReporter.fromJSON static method creates a
StageCrewMemberBuilderfrom an HtmlReporterConfig object:Learn more