Skip to content

Commit 7ae309b

Browse files
committed
calculate test count in logger
1 parent c606d73 commit 7ae309b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ global.TEST = function(name, url, scope) {
8787
var fn = function() {
8888
T.now = Date.now();
8989
T.currentname = name;
90-
T.count++;
9190
T.current.count++;
9291
url(NEXT);
9392
};
@@ -106,7 +105,6 @@ global.TEST = function(name, url, scope) {
106105
var fn = function() {
107106
T.now = Date.now();
108107
T.currentname = name;
109-
T.count++;
110108
T.current.count++;
111109
var builder = new RESTBuilder(url);
112110
builder.header('X-Assertion-Testing', '1');
@@ -158,6 +156,7 @@ exports.load = function() {
158156

159157
function logger(fail, name, description) {
160158
var time = Math.floor(Date.now() - T.now) + ' ms';
159+
T.count++
161160
if (fail) {
162161
T.countno++;
163162
T.current.countno++;

0 commit comments

Comments
 (0)