Groups
Groups
Sign in
Groups
Groups
goweb
Conversations
About
Send feedback
Help
Goweb GAE unit testing
32 views
Skip to first unread message
karthic
unread,
Sep 27, 2012, 2:06:58 AM
9/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
10/16/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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