/test-neovim

Make the testing in Go an a easily way

Primary LanguageLua

๐Ÿงช Test Golang Neovim

Run the golang tests using vim-go commands

img

๐Ÿ“ฆ Installation

Install the plugin with your preferred package manager:

-- Lua
{
	"pablotrianda/test-golang",
	dependencies = {
		"anuvyklack/hydra.nvim",
		"fatih/vim-go"
	},
	config = true,
	keys = { { "<leader>t", desc = "Open Test menu" } },
}

๐Ÿš€ Usage

๐Ÿ–ฎ <leader>t

Details

Show the following options:

  • GoTestFunc
  • GoFuncFile
  • GoTestCompile
  • GoCoverage (Diff)
  • go test ./... -coverprofile=cover.out && go tool cover -html=cover.out (Open in browser)