aarzilli / gdlv

GUI frontend for Delve
Other
1.32k stars 48 forks source link

How to debug a test? #13

Closed jeremyjjbrown closed 7 years ago

jeremyjjbrown commented 7 years ago

in dlv it's simple. I can just:

$ dlv test ./control
(dlv) break control.TestDockerGetsRepos
(dlv) continue

from the root of my project where there is a go test: ./control/docker_test.go

with a test function: func (suite *DockerSuite) TestDockerGetsRepos() {...}

If I do gdlv test ./control I get:

Compiling...done
can't load package: package gerrit.it.here.com/olp/dp/ipaas: no buildable Go source files in /Users/jeremybr/Dev/src/gerrit.it.here.com/olp/dp/ipaas

exit status 1
aarzilli commented 7 years ago
cd control
gdlv test
jeremyjjbrown commented 7 years ago

Excellent! Thanks. Couldn't be easier.

jeremyjjbrown commented 7 years ago

BTW, this project is awesome. Thanks!

aarzilli commented 7 years ago

Thank you!