fredrikaverpil / neotest-golang

Reliable Neotest adapter for running Go tests in Neovim.
MIT License
58 stars 6 forks source link

Add support for position type 'dir' #32

Closed fredrikaverpil closed 2 weeks ago

fredrikaverpil commented 3 weeks ago

This adds substantial performance improvements on being able to run all tests in a Go project using one 'go test' command, instead of executing on a per-test basis.

Either run all tests in the entire test suite (given that you have a go.mod in your $cwd):

require("neotest").run.run({ suite = true })

Or select a directory in the Neotest summary window, and hit r to execute the tests in that Go package.