diff --git a/gopls/doc/contributing.md b/gopls/doc/contributing.md index 3f40fc7372..89b42257d2 100644 --- a/gopls/doc/contributing.md +++ b/gopls/doc/contributing.md @@ -14,6 +14,25 @@ Before you begin working on an issue, please leave a comment that you are claimi Provide information to get contributors up and running here ---> +## Testing + +To run tests for just `gopls/`, run, + +``` +cd /path/to/tools/gopls +go test ./... +``` + +But, much of the gopls work involves `internal/lsp` too, so you might want to +run both: + +``` +cd /path/to/tools +cd gopls && go test ./... +cd .. +go test ./internal/lsp/... +``` + ## Debugging