1
0
mirror of https://github.com/sstephenson/bats.git synced 2026-02-26 01:38:11 +01:00

Suite support for aggregating multiple tests under a single run

This commit is contained in:
Sam Stephenson
2012-11-16 14:25:45 -06:00
parent f8f78b5cd3
commit 19a05cc77d
18 changed files with 120 additions and 7 deletions

View File

@@ -56,4 +56,9 @@ else
shift
fi
exec bats-exec-test $count_only "$(expand_path "$filename")" "$@"
if [ -d "$filename" ]; then
shopt -s nullglob
exec bats-exec-suite $count_only "$(expand_path "$filename")"/*.bats
else
exec bats-exec-test $count_only "$(expand_path "$filename")" "$@"
fi