feat: add luatest (#1064)

This commit is contained in:
yetone
2025-01-10 00:23:59 +08:00
committed by GitHub
parent 6c10081899
commit e14eb002d5
5 changed files with 319 additions and 6 deletions

View File

@@ -66,8 +66,8 @@ clean:
luacheck:
@luacheck `find -name "*.lua"` --codes
stylecheck:
@stylua --check lua/ plugin/
luastylecheck:
@stylua --check lua/ plugin/ tests/
stylefix:
@stylua lua/ plugin/
@@ -81,3 +81,14 @@ ruststylecheck:
rustlint:
@rustup component add clippy 2> /dev/null
@cargo clippy -F luajit --all -- -F clippy::dbg-macro -D warnings
.PHONY: rusttest
rusttest:
@cargo test --features luajit
.PHONY: luatest
luatest:
nvim --headless -c "PlenaryBustedDirectory tests/"
.PHONY: lint
lint: luacheck luastylecheck ruststylecheck rustlint