Skip to content

fredrikaverpil/neotest-golang

Repository files navigation

neotest-golang

Reliable Neotest adapter for running Go tests in Neovim.

neotest-golang

Features

  • Supports all Neotest usage.
  • Supports table tests and nested test functions (based on treesitter AST parsing).
  • DAP support. Either with leoluz/nvim-dap-go integration or custom configuration for debugging of tests using delve.
  • Monorepo support (detect, run and debug tests in sub-projects).
  • Inline diagnostics.
  • Custom go test argument support.
  • Works great with andythigpen/nvim-coverage for displaying coverage in the sign column.
  • Supports testify suites.
  • Option to sanitize test output from non-UTF8 characters.

Documentation is available at https://fredrikaverpil.github.io/neotest-golang