diff --git a/lib/vows/reporters/xunit.js b/lib/vows/reporters/xunit.js index 411a948..45d9b6c 100644 --- a/lib/vows/reporters/xunit.js +++ b/lib/vows/reporters/xunit.js @@ -4,7 +4,9 @@ // added, see: http://ant.1045680.n5.nabble.com/schema-for-junit-xml-output-td1375274.html // -var puts = require('util').puts; +var options = { tail: '\n', raw: true }; +var console = require('../../vows/console'); +var puts = console.puts(options); var buffer = [], curSubject = null; @@ -47,6 +49,9 @@ function cdata(data) { } this.name = 'xunit'; +this.setStream = function (s) { + options.stream = s; +}; this.report = function (data) { var event = data[1];