浏览代码

feat(golang): add `gota` to test current directory recursively (#8974)

Muhammad Zahalqa 2 年之前
父节点
当前提交
29ec52602f
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      plugins/golang/README.md
  2. 1 0
      plugins/golang/golang.plugin.zsh

+ 1 - 0
plugins/golang/README.md

@@ -27,4 +27,5 @@ plugins=(... golang)
 | gops    | `cd $GOPATH/src`        | Takes you to $GOPATH/src                                      |
 | gor     | `go run`                | Compiles and runs your code                                   |
 | got     | `go test`               | Runs tests                                                    |
+| gota    | `go test ./...`         | Runs tests in all subdirectories                              |
 | gov     | `go vet`                | Vet examines Go source code and reports suspicious constructs |

+ 1 - 0
plugins/golang/golang.plugin.zsh

@@ -271,4 +271,5 @@ alias gopb='cd $GOPATH/bin'
 alias gops='cd $GOPATH/src'
 alias gor='go run'
 alias got='go test'
+alias gota='go test ./...'
 alias gov='go vet'