diff --git a/lib/test.js b/lib/test.js index 61ddace7..7c288bb6 100644 --- a/lib/test.js +++ b/lib/test.js @@ -102,7 +102,10 @@ Test.prototype.test = function (name, opts, cb) { }; Test.prototype.comment = function (msg) { - this.emit('result', trim(msg).replace(/^#\s*/, '')); + var that = this; + String(trim(msg)).split('\n').forEach(function (aMsg) { + that.emit('result', trim(aMsg).replace(/^#\s*/, '')); + }); }; Test.prototype.plan = function (n) {