1
0
Fork 0

[#29] Outputting newline and count every 60 tests

closure/master
Mike Gerwitz 2011-11-19 14:15:31 -05:00
parent c605113412
commit 91db43d21d
1 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,7 @@ var assert = require( 'assert' ),
acount = 0, acount = 0,
icount = 0, icount = 0,
skpcount = 0, skpcount = 0,
tcount = 0,
// when set to true, final statistics will be buffered until suite ends // when set to true, final statistics will be buffered until suite ends
suite = false, suite = false,
@ -150,6 +151,9 @@ module.exports = function( test_case )
context, context,
args[ i ] 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 ] ); failures.push( [ test_str, e ] );
} }
} }
tcount++;
} }