add test timer. Remove operations related to esprima

This commit is contained in:
d98762625 2018-08-16 18:14:02 +01:00
parent 8f85e57fc5
commit fbcb626fd0
4 changed files with 16 additions and 66 deletions

View file

@ -124,11 +124,14 @@ setTimeout(function() {
process.exit(1);
}, 10 * 1000);
const start = new Date();
Promise.all([
TestRegister.runTests(),
TestRegister.runApiTests()
])
.then(function(resultsPair) {
const finish = new Date();
const results = resultsPair[0].concat(resultsPair[1]);
results.forEach(handleTestResult);
@ -145,6 +148,8 @@ Promise.all([
console.log("\nNot all tests are passing");
}
console.log(`Tests took ${(finish - start) / 1000} seconds`);
process.exit(allTestsPassing ? 0 : 1);
});