Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Mark pending tests as skipped in the TAP reports.

FARKAS Máté9cff2fdd23a5
diff --git a/lib/reporters/tap.js b/lib/reporters/tap.js
index c7b6712f..e601dc90 100644
--- a/lib/reporters/tap.js
+++ b/lib/reporters/tap.js
@@ -36,6 +36,10 @@ function TAP(runner) {
++n;
});
+ runner.on('pending', function(test){
+ console.log('ok %d %s # SKIP -', n, title(test));
+ });
+
runner.on('pass', function(test){
console.log('ok %d %s', n, title(test));
});