Update run_tests to be more scalable with more test folders added

This commit is contained in:
Stephan Seitz 2021-11-20 15:14:09 +01:00
parent 53ba38327e
commit 0f3c94cf72

View file

@ -8,11 +8,9 @@ run() {
-c "PlenaryBustedDirectory $1 { minimal_init = './scripts/minimal_init.lua' }"
}
if [[ $1 = '--summary' ]]; then
# really simple results summary by filtering plenary busted output
run tests/indent/ 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)'
elif [[ $1 = '--unit' ]]; then
run tests/unit
if [[ $2 = '--summary' ]]; then
## really simple results summary by filtering plenary busted output
run tests/$1 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)\s*:'
else
run tests/indent/
run tests/$1
fi