|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
files=$(find ./tests/integration -name "*bats")
|
|
|
|
for f in $files; do
|
|
echo "running integration tests for $f..."
|
|
bats -Tp "$f"
|
|
|
|
res=$?
|
|
if [[ "$res" -ne 0 ]]; then
|
|
echo "failure in $f, bailing out..."
|
|
exit 1
|
|
fi
|
|
|
|
echo "all tests passed!"
|
|
done
|