diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.js index 7c16302c63..01d9d87824 100644 --- a/lib/reporters/xunit.js +++ b/lib/reporters/xunit.js @@ -109,6 +109,8 @@ XUnit.prototype.done = function(failures, fn) { XUnit.prototype.write = function(line) { if (this.fileStream) { this.fileStream.write(line + '\n'); + } else if (typeof process === 'object' && process.stdout) { + process.stdout.write(line + '\n'); } else { console.log(line); }