Test Lua

Run Lua/Neovim plugin tests Use when this capability is needed.

tomevault-io a8142e4 2 files · 1.5 KB Updated

File contents

Run the Lua plugin test suite using plenary.nvim.

Usage

/test-lua - Run all Lua tests /test-lua server - Run only server tests /test-lua config - Run only config tests

Commands

Run all Lua tests:

make test-unit

Run filtered tests (replace FILTER with test name pattern):

nvim --headless --noplugin -u tests/minimal_init.lua \
  -c "lua require('plenary.test_harness').test_directory('tests/lua/', {minimal_init = 'tests/minimal_init.lua', filter = '$ARGUMENTS'})" \
  -c "qa!"

After running tests, report:

  1. Total tests run
  2. Pass/fail count
  3. Any failing test details with file:line references

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/unknownbreaker--tcl-lsp-nvim--test-lua commit a8142e483d

Frequently asked questions

npx skillmds@latest add tomevault-io/test-lua