diff --git a/lib/results.js b/lib/results.js index aadd19f9..793c2842 100644 --- a/lib/results.js +++ b/lib/results.js @@ -91,9 +91,15 @@ Results.prototype.push = function (t, parentT) { if (res.ok) self.pass ++ else self.fail ++ }); - t.once('end', onend); - function onend () { + t.once('end', function () { + if (t._skip) { + var nt = self.tests.shift(); + if (nt) nt.run(); + else self.close(); + return; + } + self.running --; if (subtests !== 0) return; @@ -104,7 +110,7 @@ Results.prototype.push = function (t, parentT) { else if (self.running === 0) { self.close(); } - } + }); }; Results.prototype.close = function () {