1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/env bash set -e cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" # Load the helpers. . helpers.bash function execute() { >&2 echo "++ $@" eval "$@" } # Tests to run. Defaults to all. TESTS=${@:-.} # Run the tests. execute time bats --tap $TESTS