[Pkg-javascript-commits] [node-tap-mocha-reporter] 43/137: Track suites count

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:24 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 3ab29e305a44df4021613cb71f340bbf8f825333
Author: isaacs <i at izs.me>
Date:   Wed Apr 29 17:56:30 2015 -0400

    Track suites count
---
 lib/runner.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/runner.js b/lib/runner.js
index 109d691..2aa9752 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -222,6 +222,9 @@ function emitSuite (parser) {
     var suite = parser.suite = new Suite(parser)
     if (parser.parent && parser.parent.suite)
       parser.parent.suite.suites.push(suite)
+    if (parser.runner.stats)
+      parser.runner.stats.suites ++
+
     parser.runner.emit('suite', suite)
   }
 }

-- 
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