chore: plenary tests POC

This commit is contained in:
Alexander Courtis
2025-02-01 18:05:23 +11:00
parent 9ac1e05fc8
commit 2dcf249d49
4 changed files with 38 additions and 4 deletions

View File

@@ -5,12 +5,15 @@ set -e
# TODO add ability for user to specify a test file or directory
REPO_DIR="$(git rev-parse --show-toplevel)"
export REPO_DIR
PLENARY_DIR="${REPO_DIR}/plenary.nvim"
export PLENARY_DIR
nvim --headless \
--clean \
--noplugin \
-c "set runtimepath+=${PLENARY_DIR}" \
-u "tests/minimal_init.lua" \
-c "lua require('plenary.test_harness').test_directory('tests/', { minimal_init = './tests/minimal_init.lua' })" \
-c "qa!"