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

@ -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++;
}