1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-24 22:33:16 +00:00

Test edition: exit with an error code if the tests fail

This commit is contained in:
Jermolene 2019-01-04 17:46:11 +00:00
parent 2dd76007d3
commit 6b4294923f

View File

@ -70,7 +70,11 @@ exports.startup = function() {
$tw.utils.evalSandboxed(code,context,title);
});
// Execute the tests
jasmineEnv.execute();
jasmineEnv.execute(function(passed) {
if(!passed) {
process.exit(1); // Error if tests failed
}
});
};
})();