Skip to content

oschmid/appenginetesting

 
 

Repository files navigation

appenginetesting

Fork of gae-go-testing with a few minor changes:

  • renamed for nicer import syntax (that IDEA's Go Plugin won't highlight as an error)
  • added +build tags so that it compiles
  • simplified install instructions.

As of GAE 1.7.5, we now keep tags of the repository that are known to be compatible with each GAE release. If you are not using the latest GAE release, please use the associated tag.

Installation

Set environment variables :

$ export APPENGINE_SDK=/path/to/google_appengine
$ export PATH=$PATH:$APPENGINE_SDK

Before installing this library, you have to install appengine SDK. And copy appengine, appengine_internal and goprotobuf as followings :

$ export APPENGINE_SDK=/path/to/google_appengine
$ ln -s $APPENGINE_SDK/goroot/src/pkg/appengine
$ ln -s $APPENGINE_SDK/goroot/src/pkg/appengine_internal

There is some incompatibility between 1.7.5 and go 1.0.3. You can fix this by commenting out the following line in the file ${APPENGINE_SDK}/goroot/src/pkg/appengine_internal/api_dev.go:

func init() { os.DisableWritesForAppEngine = true }

It should be:

//func init() { os.DisableWritesForAppEngine = true }

This library can be installed as following :

$ go get github.com/icub3d/appenginetesting

Usage

The documentation has some basic examples. You can also find complete test examples within gorca/(*_test.go). Finally, context_test.go and recorder_test.go show an example of usage.

About

Testing library for Go App Engine, giving you an appengine.Context fake that forwards to a dev_appserver.py child process.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%