Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarc Shaw <mshaw@gitlab.com>2020-10-21 18:08:33 +0300
committerMarc Shaw <mshaw@gitlab.com>2020-10-21 18:08:33 +0300
commitf93009d83a31ebc349ca39b1d930a72563e034c3 (patch)
treeba687e1ee4a3480ba5805b732b04d4732d0a10f3 /doc
parent0b0d4a08687afc930c5474c4f47259f3d34a2fa6 (diff)
Update doc/beginners_guide.md
Diffstat (limited to 'doc')
-rw-r--r--doc/beginners_guide.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/beginners_guide.md b/doc/beginners_guide.md
index 0b1ab0795..72b1be2b4 100644
--- a/doc/beginners_guide.md
+++ b/doc/beginners_guide.md
@@ -195,20 +195,20 @@ using t.Run), and sometimes a validation test. Our Go RPC tests use
in-process test servers that only implement the service the current
RPC belongs to. So if you are working on an RPC in the
'RepositoryService', your tests would go in
-`internal/service/repository/your_rpc_test.go`.
+`internal/gitaly/service/repository/your_rpc_test.go`.
##### Running one specific Go test
When you are trying to fix a specific test failure it is inefficient
to run `make test` all the time. To run just one test you need to know
-the package it lives in (e.g. `internal/service/repository`) and the
+the package it lives in (e.g. `internal/gitaly/service/repository`) and the
test name (e.g. `TestRepositoryExists`).
To run the test you need a terminal window with working directory
`/path/to/gdk/gitaly`. To run just the one test you're interested in:
```
-go test -count 1 -run TestRepositoryExists ./internal/service/repository
+go test ./internal/gitaly/service/repository -count 1 -run TestRepositoryExists
```
When writing tests, prefer using [testify]'s [require], and [assert] as