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

logging-improvements
Jermolene 2019-01-04 17:46:11 +00:00
rodzic 2dd76007d3
commit 6b4294923f
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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
}
});
};
})();