From 9417ce57e8ff6415f870971a0ad13fe269eac75c Mon Sep 17 00:00:00 2001 From: nprimo Date: Fri, 10 Mar 2023 10:13:04 +0000 Subject: [PATCH] feat(blockchain test): make test exit at first failure --- tests/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/entrypoint.sh b/tests/entrypoint.sh index ed3d749..54fe6a5 100644 --- a/tests/entrypoint.sh +++ b/tests/entrypoint.sh @@ -35,12 +35,12 @@ if test -f "/app/btc/${EXERCISE}".test.js; then bitcoin-cli listwallets bitcoin-cli getblockchaininfo fi - xx mocha "/app/btc/${EXERCISE}.test.js" + npx mocha -b "/app/btc/${EXERCISE}.test.js" elif test -f "/app/js/$EXERCISE.test.js"; then # Pure js tests [ $DEBUG ] && (echo ">> Pure JS test <<") - xx mocha "/app/js/${EXERCISE}.test.js" + npx mocha -b "/app/js/${EXERCISE}.test.js" elif test -f "/app/mjs/${EXERCISE}.test.js"; then # Tests relying on the test.mjs (Quest 2)