chore: plenary tests POC: add make entry, specify tests
This commit is contained in:
parent
006b27dc0a
commit
91e6b978e0
2
Makefile
2
Makefile
@ -47,7 +47,7 @@ help-check: help-update
|
|||||||
# test
|
# test
|
||||||
#
|
#
|
||||||
test: plenary.nvim
|
test: plenary.nvim
|
||||||
scripts/test.sh $$TEST_NAME
|
scripts/test.sh
|
||||||
|
|
||||||
#
|
#
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|||||||
@ -10,11 +10,13 @@ export DIR_PLENARY
|
|||||||
|
|
||||||
if [ "${#}" -eq 1 ]; then
|
if [ "${#}" -eq 1 ]; then
|
||||||
TEST_NAME="${1}"
|
TEST_NAME="${1}"
|
||||||
else
|
elif [ -z "${TEST_NAME}" ]; then
|
||||||
TEST_NAME="tests"
|
TEST_NAME="tests"
|
||||||
fi
|
fi
|
||||||
export TEST_NAME
|
export TEST_NAME
|
||||||
|
|
||||||
|
echo "testing: ${TEST_NAME}"
|
||||||
|
|
||||||
nvim --headless \
|
nvim --headless \
|
||||||
--clean \
|
--clean \
|
||||||
-u "${DIR_REPO}/tests/minimal_init.lua" \
|
-u "${DIR_REPO}/tests/minimal_init.lua" \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user