diff options
-rw-r--r-- | doc/beginners_guide.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/beginners_guide.md b/doc/beginners_guide.md index a610aa2db..ab81e1c80 100644 --- a/doc/beginners_guide.md +++ b/doc/beginners_guide.md @@ -228,6 +228,17 @@ called on `testing.T`. [require]: https://github.com/stretchr/testify/tree/master/require [assert]: https://github.com/stretchr/testify/tree/master/assert +##### Using Delve to debug a test + +The process to debug a test in your terminal using +[Delve](https://github.com/go-delve/delve) is almost the same as +[running a single test](#running-a-specific-test), just change the +target to `debug-test-go`: + +``` +TEST_PACKAGES=./internal/gitaly/service/repository TEST_OPTIONS="-count=1 -run=TestRepositoryExists" make debug-test-go +``` + ##### Useful snippets for creating a test ###### testhelper package |