testarmada-magellan
Version:
Massively parallel automated testing
30 lines (24 loc) • 629 B
JavaScript
;
/*
* Stdout Reporter
*
* This reporter streams the output from a test run directly to stdout/stderr, to allow
* for easier live debugging at the console.
*/
const BaseReporter = require("../reporter");
class Reporter extends BaseReporter {
constructor() {
super();
}
listenTo(testRun, test, source) {
// Stream stdout and stderr directly to stdout, assuming this source is
// a process that has those properties.
if (source.stdout) {
source.stdout.pipe(process.stdout);
}
if (source.stderr) {
source.stderr.pipe(process.stderr);
}
}
}
module.exports = Reporter;