Reliable Neotest adapter for running Go tests in Neovim.
- If using nvim-treesitter, switch to its
main
branch and run:TSUpdate go
. - For context, see the updated installation docs.
- 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).
- Streaming results.
- Inline diagnostics.
- Custom
go test
argument support. - Environment variables support.
- Works great with andythigpen/nvim-coverage for displaying coverage in the sign column.
- Supports testify suites (disabled by default).
- Option to sanitize test output from non-UTF8 characters.
...and more!
Documentation is available at https://fredrikaverpil.github.io/neotest-golang