Add support for ignoring tests by prefixing their name with an underscore.

This commit is contained in:
Tom Alexander 2020-05-16 16:46:39 -04:00
parent 6758d515f1
commit 0f90fa2c7e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
7 changed files with 6 additions and 1 deletions

View File

@ -48,7 +48,12 @@ while read -r test_group; do
fi
set -e
done <<<"$(find "$test_group" -maxdepth 1 -mindepth 1 -type f -name '*.json' | sort)"
done <<<"$(find "$DIR/test_cases" -maxdepth 1 -mindepth 1 -type d | sort)"
done <<<"$(find "$DIR/test_cases" -maxdepth 1 -mindepth 1 -type d ! -name '_*' | sort)"
ignored_count=$(find "$DIR/test_cases" -maxdepth 1 -mindepth 1 -type d -name '_*' | wc -l)
echo ""
echo "$ignored_count ignored tests"
if [ $failed_count -ne 0 ]; then
echo "$failed_count failed tests"