mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 16:56:15 -04:00
add test timer. Remove operations related to esprima
This commit is contained in:
parent
8f85e57fc5
commit
fbcb626fd0
4 changed files with 16 additions and 66 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue