From 91db43d21d35aa111718b08ffa039ce450424061 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 19 Nov 2011 14:15:31 -0500 Subject: [PATCH] [#29] Outputting newline and count every 60 tests --- test/inc-testcase.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/inc-testcase.js b/test/inc-testcase.js index c2f32c3..d88e659 100644 --- a/test/inc-testcase.js +++ b/test/inc-testcase.js @@ -26,7 +26,8 @@ var assert = require( 'assert' ), assert_wrapped = {}, acount = 0, icount = 0, - skpcount = 0, + skpcount = 0, + tcount = 0, // when set to true, final statistics will be buffered until suite ends suite = false, @@ -150,6 +151,9 @@ module.exports = function( test_case ) context, args[ i ] ); + + // output a newline and the count every 60 tests + ( tcount % 60 ) || testPrint( " " + tcount + "\n" ); } } @@ -207,6 +211,8 @@ function tryTest( test_case, test, test_str, context, args ) failures.push( [ test_str, e ] ); } } + + tcount++; }