vimtesting

star 0

Integrated testing with Neotest

khulnasoft By khulnasoft schedule Updated 2/2/2026

name: vim.testing description: Integrated testing with Neotest

Neovim Testing Skills

This document covers the testing capabilities in Neovim using neotest.


Neotest Keybindings

Your configuration provides powerful shortcuts for running and inspecting tests:

  • <leader>tr: Run nearest test.
  • <leader>ts: Run test suite.
  • <leader>ta: Run all tests (cwd).
  • <leader>td: Debug nearest test (integrates with DAP).
  • <leader>tv: Toggle summary UI.
  • <leader>to: Open test output window.

Supported Adapters

  • neotest-golang: Specialized support for Go testing (configured with DAP integration).

Neotest API Reference

local neotest = require("neotest")

-- Run tests
neotest.run.run()                    -- Nearest
neotest.run.run(vim.fn.expand("%"))  -- Current file
neotest.run.run({strategy = "dap"})  -- Run with debugger

-- UI & Output
neotest.summary.toggle()
neotest.output.open({ enter = true })
neotest.output_panel.toggle()
Install via CLI
npx skills add https://github.com/khulnasoft/init.lua --skill vimtesting
Repository Details
star Stars 0
call_split Forks 4
navigation Branch main
article Path SKILL.md
More from Creator