From ecca8145a3a8ecb2f27773b97db4429a65387129 Mon Sep 17 00:00:00 2001 From: michalholasek Date: Mon, 17 Jul 2017 11:14:50 +0200 Subject: [PATCH] fix: Return correct exit code when tests fail --- src/dredd-command.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dredd-command.coffee b/src/dredd-command.coffee index 7ccccabaf..03a8a0208 100644 --- a/src/dredd-command.coffee +++ b/src/dredd-command.coffee @@ -332,9 +332,11 @@ class DreddCommand exitWithStatus: (error, stats) -> if error logger.error(error.message) if error.message + process.exitCode = 1 return @_processExit(1) if (stats.failures + stats.errors) > 0 + process.exitCode = 1 @_processExit(1) else @_processExit(0)