docs(gotests): add docs
This commit is contained in:
parent
de17bcac04
commit
3f07f03117
4 changed files with 94 additions and 21 deletions
20
README.md
20
README.md
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue