diff --git a/bin/validate_one_exercise b/bin/validate_one_exercise index 9ab8862e..adc9a900 100755 --- a/bin/validate_one_exercise +++ b/bin/validate_one_exercise @@ -95,6 +95,9 @@ if $in_docker; then --mount type=tmpfs,dst=/tmp \ exercism/bash-test-runner "${exercise}" /solution /output jq . ./results.json + # the test runner exits successfully even when tests fail + jq -e '.status == "pass"' ./results.json > /dev/null || + die "Tests did not pass for ${exercise}" else BATS_RUN_SKIPPED=true bats "${tests}" fi