|
@ -1640,11 +1640,11 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar |
|
|
error = void 0, |
|
|
error = void 0, |
|
|
errored = void 0; |
|
|
errored = void 0; |
|
|
try { |
|
|
try { |
|
|
perf.start = Date.now(); |
|
|
perf.start = new Date(); |
|
|
value = test(state); |
|
|
value = test(state); |
|
|
perf.end = Date.now(); |
|
|
perf.end = new Date(); |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
perf.end = Date.now(); |
|
|
perf.end = new Date(); |
|
|
errored = true; |
|
|
errored = true; |
|
|
error = e; |
|
|
error = e; |
|
|
} |
|
|
} |
|
@ -1654,14 +1654,14 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar |
|
|
if (promise) { |
|
|
if (promise) { |
|
|
return value.then(function (res) { |
|
|
return value.then(function (res) { |
|
|
return { |
|
|
return { |
|
|
duration: Date.now() - perf.start, |
|
|
duration: new Date() - perf.start, |
|
|
status: 'ok', |
|
|
status: 'ok', |
|
|
resolve: res, |
|
|
resolve: res, |
|
|
promise: true |
|
|
promise: true |
|
|
}; |
|
|
}; |
|
|
}).catch(function (rej) { |
|
|
}).catch(function (rej) { |
|
|
return { |
|
|
return { |
|
|
duration: Date.now() - perf.start, |
|
|
duration: new Date() - perf.start, |
|
|
status: 'notOk', |
|
|
status: 'notOk', |
|
|
rejection: rej, |
|
|
rejection: rej, |
|
|
promise: true |
|
|
promise: true |
|
@ -1861,10 +1861,10 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar |
|
|
*/ |
|
|
*/ |
|
|
var testrunner = function testrunner(instance) { |
|
|
var testrunner = function testrunner(instance) { |
|
|
|
|
|
|
|
|
var perf = { start: Date.now() }; |
|
|
var perf = { start: new Date() }; |
|
|
|
|
|
|
|
|
return Promise.object(pipe(buildTestQueue, reduceQueue, pick('results'))(instance)).then(function (results) { |
|
|
return Promise.object(pipe(buildTestQueue, reduceQueue, pick('results'))(instance)).then(function (results) { |
|
|
perf.end = Date.now(); |
|
|
perf.end = new Date(); |
|
|
results.end = perf.end.toUTCString(); |
|
|
results.end = perf.end.toUTCString(); |
|
|
results.start = perf.start.toUTCString(); |
|
|
results.start = perf.start.toUTCString(); |
|
|
results.duration = perf.end - perf.start; |
|
|
results.duration = perf.end - perf.start; |
|
@ -2085,12 +2085,12 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar |
|
|
|
|
|
|
|
|
if (RunInstances.length !== instances.length) throw new Error("Not all instances were of type " + type); |
|
|
if (RunInstances.length !== instances.length) throw new Error("Not all instances were of type " + type); |
|
|
|
|
|
|
|
|
var perf = { start: Date.now() }; |
|
|
var perf = { start: new Date() }; |
|
|
|
|
|
|
|
|
return Promise.all(RunInstances.map(function (instance) { |
|
|
return Promise.all(RunInstances.map(function (instance) { |
|
|
return instance.run({ reporter: 'min' }); |
|
|
return instance.run({ reporter: 'min' }); |
|
|
})).then(function (results) { |
|
|
})).then(function (results) { |
|
|
perf.end = Date.now(); |
|
|
perf.end = new Date(); |
|
|
results.start = perf.start.toUTCString(); |
|
|
results.start = perf.start.toUTCString(); |
|
|
results.end = perf.end.toUTCString(); |
|
|
results.end = perf.end.toUTCString(); |
|
|
results.duration = perf.end - perf.start; |
|
|
results.duration = perf.end - perf.start; |
|
@ -2328,11 +2328,15 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, { "json-stringify-safe": 6 }], 26: [function (require, module, exports) { |
|
|
}, { "json-stringify-safe": 6 }], 26: [function (require, module, exports) { |
|
|
(function (process) { |
|
|
(function (global) { |
|
|
module.exports = { |
|
|
module.exports = { |
|
|
|
|
|
|
|
|
clear: function clear() { |
|
|
clear: function clear() { |
|
|
|
|
|
|
|
|
|
|
|
if (typeof global === 'undefined' || typeof global.process === 'undefined' || typeof global.process.stdout === 'undefined') return; |
|
|
|
|
|
|
|
|
|
|
|
var process = global.process; |
|
|
|
|
|
|
|
|
// clear screen
|
|
|
// clear screen
|
|
|
process.stdout.write("\x1B[2J"); |
|
|
process.stdout.write("\x1B[2J"); |
|
|
// set cursor position to top
|
|
|
// set cursor position to top
|
|
@ -2340,8 +2344,8 @@ function _toConsumableArray2(arr) { if (Array.isArray(arr)) { for (var i = 0, ar |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}).call(this, require('_process')); |
|
|
}).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); |
|
|
}, { "_process": 9 }], 27: [function (require, module, exports) { |
|
|
}, {}], 27: [function (require, module, exports) { |
|
|
module.exports = { |
|
|
module.exports = { |
|
|
|
|
|
|
|
|
Start: Symbol('Start'), |
|
|
Start: Symbol('Start'), |
|
|