Skip to content

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

License

Notifications You must be signed in to change notification settings

stanfy/gae-go-testing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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 93.1%
  • Python 6.9%