Goweb GAE unit testing

32 views
Skip to first unread message

karthic

unread,
Sep 27, 2012, 2:06:58 AM9/27/12
to golang...@googlegroups.com
Hi all,

I am very new to GO, Somehow i have managed to create a web-service to store and retrieve data from datastore (GOWEB and GAE).

Can any one help me to do the unit testing for the application i have just created.

Karthic

matryer

unread,
Oct 16, 2012, 5:27:28 PM10/16/12
to golang...@googlegroups.com
Well firstly, make sure you're using a decent testing package e.g. testify http://go.pkgdoc.org/github.com/stretchrcom/testify/assert

Abstracting the right parts of the app means you can write the bulk of your test code as unit tests, which is great for TDD practices too.

Beyond that, to test with the datastore etc. you'll need to look into something like this: https://code.google.com/p/gae-go-testing/

Hope that helps

Mat
Reply all
Reply to author
Forward
0 new messages