diff --git a/Makefile b/Makefile index e412d9a9..0f164c70 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ help-check: help-update # test # test: plenary.nvim - scripts/test.sh $$TEST_NAME + scripts/test.sh # # Dependencies diff --git a/scripts/test.sh b/scripts/test.sh index 3ff47543..2694968c 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -10,11 +10,13 @@ export DIR_PLENARY if [ "${#}" -eq 1 ]; then TEST_NAME="${1}" -else +elif [ -z "${TEST_NAME}" ]; then TEST_NAME="tests" fi export TEST_NAME +echo "testing: ${TEST_NAME}" + nvim --headless \ --clean \ -u "${DIR_REPO}/tests/minimal_init.lua" \