Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to unit-test with datastore #644

Closed
junghoahnsc opened this issue Jun 1, 2017 · 1 comment
Closed

How to unit-test with datastore #644

junghoahnsc opened this issue Jun 1, 2017 · 1 comment
Assignees

Comments

@junghoahnsc
Copy link

Hello,

Is there any way to run unit tests with datastore?
I know there is a datastore emulator, but it's not trivial to run it in CI testing environment.

Thanks,

@jba
Copy link
Contributor

jba commented Jun 1, 2017

At present, the best choice is to write your own application-specific interface with one implementation using cloud.google.com/go/datastore and another with your test double.

Closing this because it is subsumed by #592.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants