Skip to content

Commit

Permalink
Merge pull request #2005 from jonnyreeves/patch-1
Browse files Browse the repository at this point in the history
XUnit Reporter Writes to stdout, falls back to console.log
  • Loading branch information
danielstjules committed Dec 25, 2015
2 parents 5d1fdc2 + 3134ea4 commit c972f0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/reporters/xunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c972f0b

Please sign in to comment.