chore: plenary tests POC: add make entry, specify tests

This commit is contained in:
Alexander Courtis 2025-02-03 16:01:13 +11:00
parent 006b27dc0a
commit 91e6b978e0
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@ help-check: help-update
# test
#
test: plenary.nvim
scripts/test.sh $$TEST_NAME
scripts/test.sh
#
# Dependencies

View File

@ -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" \