mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Make process fail when mocha fails on integration tests.
This commit is contained in:
parent
ecdc91b221
commit
c258c25a38
|
@ -50,3 +50,10 @@ mocha.stdout.on('data', (data) => {
|
|||
mocha.stderr.on('data', (data) => {
|
||||
process.stderr.write(`${data}`);
|
||||
});
|
||||
|
||||
mocha.on('exit', function(statusCode) {
|
||||
if (statusCode != 0) {
|
||||
console.error("The tests failed... Mocha exited with status code " + statusCode);
|
||||
}
|
||||
process.exit(statusCode);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user