Skip to content

Commit

Permalink
feat(blockchain test): make test exit at first failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nprimo committed Mar 15, 2023
1 parent aefa4fc commit 9417ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9417ce5

Please sign in to comment.