jgeewax / gclouddatastore

Deprecated in favor of
github.com/GoogleCloudPlatform/gcloud-python
Apache License 2.0
2 stars 3 forks source link

How can we cover unit testing for the library? #8

Open jgeewax opened 10 years ago

jgeewax commented 10 years ago

Right now, the only way to develop this is by hitting the live Cloud Datastore API. Is there a way we can use these API calls in unit tests without mocking?

Can we have a "local datastore" server that understands the API and makes it easy for local development?

x1ddos commented 10 years ago

Use gcd dev server?

jgeewax commented 10 years ago

Having a conversation over here: https://github.com/jgeewax/gcloud/issues/2

I think the issue really is more about in-memory testing -- a stub service would be really nice to expose (along the lines of how dev_appserver.py in App Engine does it) like with google.appengine.ext.testbed.