vim.testing

Run, inspect, and debug Neovim tests via the Neotest API.

4|Updated Sep 25, 2024
One-click install
npx skills add https://github.com/khulnasoft/init.lua --skill vim-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vim.testing
Source: https://github.com/khulnasoft/init.lua/tree/main/skills/vim.testing
Command: npx skills add https://github.com/khulnasoft/init.lua --skill vim-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Neovim users often struggle to efficiently run and review tests within their editor. This skill provides integrated testing commands and UI workflows powered by neotest, enabling quick feedback during development.

Core Features & Use Cases

  • Neotest keybindings for running tests, viewing results, and debugging with DAP.
  • Adapter support for neotest-golang, enabling Go testing workflows.
  • Direct Neotest API usage examples for running tests from Lua or command-line contexts.

Quick Start

Open a test file and press the Neotest shortcuts to run or debug tests.

Frequently Asked Questions about vim.testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run and debug tests in Neovim using neotest?

To run and debug tests in Neovim, this skill provides integrated keybindings and UI workflows powered by neotest, allowing you to execute tests, view summaries, and launch DAP debugging sessions directly from your editor.

Can I use neotest to run Go tests inside Neovim?

Yes, you can run Go tests inside Neovim. This skill supports neotest-golang adapters, enabling specific Go testing workflows and direct API usage for executing tests from Lua or command-line contexts.

What is the best way to inspect test output in Neovim?

The best way to inspect test output in Neovim is by using the integrated neotest UI workflows. This skill streamlines the process, rendering summaries and output views for quick feedback during development.

Does this neotest workflow support DAP-based debugging?

Yes, this neotest workflow supports DAP-based debugging. It satisfies integration with the Neotest API to execute tests and launch DAP sessions, allowing you to inspect and debug test failures seamlessly.

Do I need a specific Neovim configuration to use neotest commands?

You need a Neovim configuration that leverages neotest adapters, such as neotest-golang. This skill applies to setups using these adapters to execute tests, render summaries, and support debugging for Lua and Go tests.