feat(luatest): create a self-contained test runner

Adds a new scripts/run-luatest.sh script to provide a consistent,
self-contained way to run project unit tests, including locally.

The script handles:

 - Checking for necessary tools (rg, ag)
 - Cloning or updating plenary.nvim into the target/tests/deps directory

The Makefile is updated to use this new script, making make luatest the
single entry point for running unit tests.

The lua.yaml workflow is simplified to use this new make target,
ensuring the CI environment uses the exact same testing logic.
This commit is contained in:
Dmitry Torokhov
2025-07-31 10:33:31 -07:00
committed by yetone
parent 59a518cf86
commit 61c1bf8bfe
3 changed files with 60 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ rusttest:
.PHONY: luatest
luatest:
nvim --headless -c "PlenaryBustedDirectory tests/"
@./scripts/run-luatest.sh
.PHONY: lint
lint: luacheck luastylecheck ruststylecheck rustlint