kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Test edition: exit with an error code if the tests fail
rodzic
2dd76007d3
commit
6b4294923f
|
@ -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
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
})();
|
||||
|
|
Ładowanie…
Reference in New Issue