Commit a0ef2216 authored by aniket-engg's avatar aniket-engg Committed by Aniket

time calculation for tests improved

parent 8ac56711
...@@ -215,6 +215,7 @@ export function runTest (testName: string, testObject: any, contractDetails: Com ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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()
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment