From daf461231f1cc3c2f143f8d4e80f8714b63faec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Sun, 10 Jan 2016 23:25:04 +0100 Subject: [PATCH] Enable `this.skip()` within individual test at runtime References #946 --- lib/runner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/runner.js b/lib/runner.js index 856ac93e21..0979bbc2d3 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -531,6 +531,7 @@ Runner.prototype.runTests = function(suite, fn) { if (err) { var retry = test.currentRetry(); if (err instanceof Pending) { + test.pending = true; self.emit('pending', test); } else if (retry < test.retries()) { var clonedTest = test.clone();