I'm trying to write an app for App Engine using the Go SDK, but it seems to have a funny relationship to unit testing. People have written libraries around this original, outdated set of tools, but every time I try to install them, depending on the Go command I use I run into one of two problems:
go
: Can't locate 'appengine' or 'appengine_internal'go
: not allowed to build packages. I doubt I'm supposed to be using this.My guess is that I have to manipulate my $GOPATH
to include a directory somewhere in the SDK so that the appengine packages are visible, but I've tried many variations (such as $SDK/goroot
, $SDK/goroot/src
, etc.) and none of them seem to work.
-Generally-, what testing strategies might one suggest for App Engine for Go?
-Specifically-, how can I go about making those packages visible so that I may use the general Go tool to install libraries that depend on them (such as these testing packages) or otherwise run my own test suites?
This answer provides detailed installation instructions for the updated gae-go-testing. I did a quick run through and they do seem to work. Note that installation involves copying across appengine
, appengine_internal
and goprotobuf
from the SDK to your local go install.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With