diff --git a/test/bash/include.sh b/test/bash/include.sh index 25c5c8a0..0b4afd8c 100644 --- a/test/bash/include.sh +++ b/test/bash/include.sh @@ -20,6 +20,8 @@ script="echo" file_path="test/fixtures" +set -o verbose + $pm2 kill # Determine wget / curl diff --git a/test/index.sh b/test/index.sh index 83f4be6c..8b93353f 100644 --- a/test/index.sh +++ b/test/index.sh @@ -3,7 +3,10 @@ alias mocha='../node_modules/mocha/bin/mocha' pm2="`type -P node` `pwd`/bin/pm2" +# Abort script at first error set -e +# Display all commands executed +set -o verbose function fail { echo -e "######## \033[31m ✘ $1\033[0m" diff --git a/test/main.sh b/test/main.sh index 8ebd4521..1fd53914 100644 --- a/test/main.sh +++ b/test/main.sh @@ -3,7 +3,10 @@ SRC=$(cd $(dirname "$0"); pwd) source "${SRC}/bash/include.sh" +# Abort script at first error set -e +# Display all commands executed +set -o verbose echo "####################### DEBUG ############################" echo "PM2 Command = " $pm2