mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-28 15:08:46 +00:00
Test edition: exit with an error code if the tests fail
This commit is contained in:
parent
2dd76007d3
commit
6b4294923f
@ -70,7 +70,11 @@ exports.startup = function() {
|
|||||||
$tw.utils.evalSandboxed(code,context,title);
|
$tw.utils.evalSandboxed(code,context,title);
|
||||||
});
|
});
|
||||||
// Execute the tests
|
// Execute the tests
|
||||||
jasmineEnv.execute();
|
jasmineEnv.execute(function(passed) {
|
||||||
|
if(!passed) {
|
||||||
|
process.exit(1); // Error if tests failed
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user