1
0
Fork 0

reset values on test-start, module load may have happened before

This commit is contained in:
Wilfried Goesgens 2019-09-30 11:09:23 +02:00
parent 6d9a84cbb1
commit 3164913ab2
1 changed files with 22 additions and 2 deletions

View File

@ -44,8 +44,6 @@ var TEARDOWNS = 0;
var TOTALSETUPS = 0;
var TOTALTEARDOWNS = 0;
var jsUnity = require('./jsunity/jsunity').jsUnity;
var STARTTEST = 0.0;
var ENDTEST = 0.0;
@ -345,6 +343,28 @@ function WriteDone (suiteName) {
// //////////////////////////////////////////////////////////////////////////////
function RunTest (path, outputReply, filter) {
// re-reset our globlas, on module loading may be cached.
TOTAL = 0;
PASSED = 0;
FAILED = 0;
DURATION = 0;
RESULTS = {};
COMPLETE = {};
SETUPS = 0;
TEARDOWNS = 0;
TOTALSETUPS = 0;
TOTALTEARDOWNS = 0;
STARTTEST = 0.0;
ENDTEST = 0.0;
STARTSUITE = 0.0;
ENDTEARDOWN = 0.0;
STARTTEST = 0.0;
ENDTEST = 0.0;
STARTSUITE = 0.0;
ENDTEARDOWN = 0.0;
var content;
var f;