We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea38545 commit d959b4dCopy full SHA for d959b4d
1 file changed
test.sh
@@ -2,6 +2,8 @@
2
3
set -e
4
5
+echo ">> Running ${0}..."
6
+
7
# Check for requirements
8
for C in bats curl gomplate timeout; do
9
command -v ${C} >/dev/null 2>&1 || { echo "Error: Tests require ${C} to be installed."; exit 1; }
@@ -18,4 +20,10 @@ trap finish EXIT
18
20
19
21
# Run all bats tests
22
pushd tests 1> /dev/null
-bats "${1:-*}".bats
23
+if [ -z "$1" ]; then
24
+ for f in *.bats; do
25
+ bats "$f"
26
+ done
27
+else
28
+ bats "$1".bats
29
+fi
0 commit comments