aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2026-03-17 10:12:15 +0100
committerChristian Clason <c.clason@uni-graz.at>2026-03-17 16:33:58 +0100
commit883ea77d1299b7082b8a809b4ea7351424091db5 (patch)
tree4abbfec02009cab79a9e0e6a55c81ab6cc451290 /Makefile
parenttest(indent): we have scan_dir at home (diff)
downloadnvim-treesitter-test/plentest.tar
nvim-treesitter-test/plentest.tar.gz
nvim-treesitter-test/plentest.tar.bz2
nvim-treesitter-test/plentest.tar.lz
nvim-treesitter-test/plentest.tar.xz
nvim-treesitter-test/plentest.tar.zst
nvim-treesitter-test/plentest.zip
test: replace plenary with plentest.nvimtest/plentest
Problem: plenary.nvim as test runner is overkill and no longer maintained. Solution: Replace with a minimal fork based on Neovim API and vendored luassert.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 9442df997..572a7f30b 100644
--- a/Makefile
+++ b/Makefile
@@ -86,13 +86,13 @@ $(HLASSERT):
tar -xf $(HLASSERT_TARBALL) -C $@
rm -rf $(HLASSERT_TARBALL)
-PLENARY := $(DEPDIR)/plenary.nvim
+PLENTEST := $(DEPDIR)/plentest.nvim
-.PHONY: plenary
-plenary: $(PLENARY)
+.PHONY: plentest
+plentest: $(PLENTEST)
-$(PLENARY):
- git clone --filter=blob:none https://github.com/nvim-lua/plenary.nvim $(PLENARY)
+$(PLENTEST):
+ git clone --filter=blob:none https://github.com/nvim-treesitter/plentest.nvim $(PLENTEST)
# actual test targets
@@ -129,10 +129,10 @@ docs: $(NVIM)
$(NVIM_BIN) -l scripts/update-readme.lua
.PHONY: tests
-tests: $(NVIM) $(HLASSERT) $(PLENARY)
- HLASSERT=$(HLASSERT)/highlight-assertions PLENARY=$(PLENARY) \
+tests: $(NVIM) $(HLASSERT) $(PLENTEST)
+ HLASSERT=$(HLASSERT)/highlight-assertions PLENTEST=$(PLENTEST) \
$(NVIM_BIN) --headless --clean -u scripts/minimal_init.lua \
- -c "PlenaryBustedDirectory tests/$(TESTS) { minimal_init = './scripts/minimal_init.lua' }"
+ -c "lua require('plentest').test_directory('tests/$(TESTS)', { minimal_init = './scripts/minimal_init.lua' })"
.PHONY: all
all: lua query docs tests