Skip to content
Permalink
Browse files
feat(core): consoleReporter prints to stdout and stderr by default
affects: @serenity-js/core, @serenity-js-examples/cucumber-domain-level-testing
  • Loading branch information
jan-molak committed Sep 16, 2018
1 parent ec5aa5d commit 0ea8f1ea662e31ab46c62e35e982e57b9cea0792
@@ -1,6 +1,6 @@
import { serenity } from '@serenity-js/core';
import { FileSystem, Path } from '@serenity-js/core/lib/io';
import { ArtifactArchiver, ConsoleReporter, DebugReporter, SerenityBDDReporter, Stage } from '@serenity-js/core/lib/stage';
import { ArtifactArchiver, ConsoleReporter, SerenityBDDReporter, Stage } from '@serenity-js/core/lib/stage';

import { setDefaultTimeout, setWorldConstructor } from 'cucumber';
import { Actors } from './Actors';
@@ -20,5 +20,5 @@ setWorldConstructor(function(this: WithStage, { parameters }) {
serenity.stageManager.register(
new ArtifactArchiver(new FileSystem(new Path('./target/site/serenity'))),
new SerenityBDDReporter(),
new ConsoleReporter(process.stdout),
new ConsoleReporter(),
);
@@ -30,8 +30,8 @@ export class ConsoleReporter implements StageCrewMember {
private spacesPerIntend = 2;

constructor(
private readonly stdout: WriteStream,
private readonly stderr: WriteStream = stdout,
private readonly stdout: WriteStream = process.stdout,
private readonly stderr: WriteStream = process.stderr,
) {
}

0 comments on commit 0ea8f1e

Please sign in to comment.