time calculation for tests improved

pull/410/head
aniket-engg 4 years ago committed by Aniket
parent 8ac5671145
commit a0ef22169f
  1. 4
      libs/remix-tests/src/testRunner.ts

@ -215,6 +215,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
} }
testCallback(undefined, resp) testCallback(undefined, resp)
failureNum += 1 failureNum += 1
timePassed += time
} }
next() next()
}) })
@ -253,6 +254,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
}; };
testCallback(undefined, resp) testCallback(undefined, resp)
failureNum += 1 failureNum += 1
timePassed += time
return next() return next()
} }
testPassed = true testPassed = true
@ -268,6 +270,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
} }
testCallback(undefined, resp) testCallback(undefined, resp)
passingNum += 1 passingNum += 1
timePassed += time
} }
return next() return next()
@ -286,6 +289,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com
}; };
testCallback(undefined, resp) testCallback(undefined, resp)
failureNum += 1 failureNum += 1
timePassed += time
return next() return next()
}) })
} }

Loading…
Cancel
Save