Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 974 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 974 Bytes

gae-go-testing

Testing library for Go App Engine, giving you an appengine.Context fake that forwards to a dev_appserver.py child process. This library is fixed for go1 based on http://code.google.com/p/gae-go-testing/ . This library works on GAE/G 1.7.0 or higher and go1 and tested on:

* GAE/G 1.7.0, go 1.0.2
* GAE/G 1.7.1, go 1.0.2

Installation

Set environment variables :

export APPENGINE_SDK=/usr/local/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 :

curl https://raw.github.com/tenntenn/gae-go-testing/master/setup.py | python

This library can be installed as following :

$go get github.com/tenntenn/gae-go-testing

Usage

context_test.go and recorder_test.go show an example of usage.