From 91e6b978e003fb03fd76c1697dd6b5be7eaafa12 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Mon, 3 Feb 2025 16:01:13 +1100 Subject: [PATCH] chore: plenary tests POC: add make entry, specify tests --- Makefile | 2 +- scripts/test.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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" \