docs(gotests): add docs

This commit is contained in:
Smirnov Oleksandr 2024-04-02 17:38:21 +03:00
parent de17bcac04
commit 3f07f03117
4 changed files with 94 additions and 21 deletions

View file

@ -64,24 +64,6 @@ require("gopher").setup {
}
```
<details>
<summary>
For named tests to work you have to install gotests from develop branch. Next code snippets could be placed into the build step in the Lazy plugin declaration
</summary>
```lua
-- using mason-tool-installer
require("mason-tool-installer").setup {
ensure_installed = {
{ "gotests", version = "develop" },
}
}
-- using `vim.fn.jobstart`
vim.fn.jobstart("go install github.com/cweill/gotests/...@develop")
```
</details>
## Features
<!-- markdownlint-disable -->
@ -148,6 +130,8 @@ require("gopher").setup {
require("gopher").test.exported()
require("gopher").test.all()
```
For named tests see `:h gopher.nvim-gotests-named`
</details>
<details>