[Question] Any way to run a test, with pry?
dahernan opened this issue · 3 comments
dahernan commented
For example if I need to run
go test -test.run="^TestRefreshToken$"
and put, in one of the test
pry.Pry()
d4l3k commented
Currently there isn't a way to do that but it's definitely on the roadmap.
go-pry has a rather simple model for running pry commands. It takes the provided file, and makes a copy of it with pry.Apply() instead of the pry.Pry() statement.
The next step will be to make a backup of all the go files in the current directory and tweak the actual files, thus allowing standard go commands to run.
dahernan commented
Thank you, looks pretty good!
d4l3k commented
This should be working with the latest commits. go-pry is now just a wrapper around go so you can use all of the normal go commands.
For example:
go-pry test -test.run="^TestRefreshToken$"
Should work. Tell me if you have any issues.