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

This commit is contained in:
Alexander Courtis
2025-02-03 15:31:33 +11:00
parent f9dc294829
commit 63cd226c3e
4 changed files with 28 additions and 11 deletions

View File

@@ -2,16 +2,19 @@
set -e
# TODO add ability for user to specify a test file or directory
# TODO clone plenary
DIR_REPO="$(git rev-parse --show-toplevel)"
export DIR_REPO
DIR_PLENARY="${DIR_REPO}/plenary.nvim"
export DIR_PLENARY
if [ "${#}" -eq 1 ]; then
TEST_NAME="${1}"
else
TEST_NAME="tests"
fi
export TEST_NAME
nvim --headless \
--clean \
-u "${DIR_REPO}/tests/minimal_init.lua" \