Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.3 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.3 KB

gae-go-testing

DEPRECATED Use package appengine/aetest instead.

Testing library for Go App Engine, giving you an appengine.Context fake that forwards to a dev_appserver.py child process. This library is based on https://github.com/tenntenn/gae-go-testing. This library works on GAE/G 1.8.2.

This package is no longer being maintained. The Go App Engine SDK now includes a testing package (appengine/aetest)

Installation

Make sure you have appengine SDK installed.

Run this script and set corresponding environment variables it asks for:

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

This script will copy appengine, appengine_internal, and goprotobuf packages from GAE SDK to Go root and that install this library with commands

go get github.com/stanfy/gae-go-testing/appenginetestinit
go get github.com/stanfy/gae-go-testing/appenginetesting

Usage

  • Import github.com/stanfy/gae-go-testing/appenginetestinit (making it to be the last in inports list) to your test file and call appenginetestinit.Use() from init() function.

  • Create AppEngine context using appenginetesting.NewContext.