[#29] Outputting newline and count every 60 tests
parent
c605113412
commit
91db43d21d
|
@ -26,7 +26,8 @@ var assert = require( 'assert' ),
|
||||||
assert_wrapped = {},
|
assert_wrapped = {},
|
||||||
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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue