[Pkg-javascript-commits] [node-tap-mocha-reporter] 112/137: classic reporter: don't show --grep or --only skip messages

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap-mocha-reporter.

commit da93e58e16c0e5f97759083b6bece52aa9ec82ef
Author: isaacs <i at izs.me>
Date:   Sat Jun 24 19:14:01 2017 -0700

    classic reporter: don't show --grep or --only skip messages
---
 lib/reporters/classic.js | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/reporters/classic.js b/lib/reporters/classic.js
index 09911f5..e58e91a 100644
--- a/lib/reporters/classic.js
+++ b/lib/reporters/classic.js
@@ -352,10 +352,12 @@ function Classic (runner) {
 
     if (t.skip) {
       skipped += 1
-      if (t.skip !== true)
-        skipMsg.push(t.name + ' ' + Base.color('skip', t.skip))
-      else
-        skipMsg.push(t.name)
+      if (!/^filter(( out)?: \/.+\/|: only)$/.test(t.skip)) {
+        if (t.skip !== true)
+          skipMsg.push(t.name + ' ' + Base.color('skip', t.skip))
+        else
+          skipMsg.push(t.name)
+      }
     }
     else if (t.todo)
       todo.push(t)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap-mocha-reporter.git



More information about the Pkg-javascript-commits mailing list