aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_tests.sh')
-rwxr-xr-xscripts/run_tests.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh
index c7800d50f..2447bd4c1 100755
--- a/scripts/run_tests.sh
+++ b/scripts/run_tests.sh
@@ -5,12 +5,14 @@ cd $HERE/..
run() {
nvim --headless --noplugin -u scripts/minimal_init.lua \
- -c "PlenaryBustedDirectory tests/indent/ { minimal_init = './scripts/minimal_init.lua' }"
+ -c "PlenaryBustedDirectory $1 { minimal_init = './scripts/minimal_init.lua' }"
}
if [[ $1 = '--summary' ]]; then
# really simple results summary by filtering plenary busted output
- run 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)'
+ run tests/indent/ 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)'
+elif [[ $1 = '--unit' ]]; then
+ run tests/unit
else
- run
+ run tests/indent/
fi