StageCrewMembers observe the
Stage, watch the
Activities they perform, and listen to the
DomainEvents emitted by their environment. They use the information they gather to produce
Artifacts, such as test reports, produce more events to prompt other crew members to action, or perform side-effects like printing to the terminal, writing files to disk, or performing network or database calls.
Several of the Serenity/JS modules provide
StageCrewMembers you can use for test reporting purposes:
@serenity-js/console-reporter- provides the
ConsoleReporter, which writes text-based test reports to your computer terminal,
@serenity-js/serenity-bdd- provides the
SerenityBDDReporter, which emits Serenity BDD-compatible JSON reports, to be archived via
ArtifactArchiverand consumed by the Serenity BDD CLI to produce HTML reports and living documentation,
@serenity-js/core- provides the
ArtifactArchiver, which store the artifacts on disk, as well as the
StreamReporter, which logs any events it receives.
You can also create your own
StageCrewMembers based on the above examples.