Stream Reporter
StreamReporter
, available as part of the @serenity-js/core
module,
serialises domain events it receives to JSON and sends them
to a Writable
stream of your choice.
This service is useful for debugging any custom extensions you create for Serenity/JS, or debugging the framework itself.
Installation and usage​
To learn more about the StreamReporter
, please consult:
- installation instructions in
@serenity-js/core
documentation, - configuration examples in
StreamReporter
API documentation.
You might also want to explore Serenity/JS example projects on GitHub.
Integration​
StreamReporter
listens to all the domain events emitted by actors
and Serenity/JS test runner adapters.
Next, it streams them to a Writable
stream,
such as process.stdout
,
or one created via fs.createWriteStream(filename)
.