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

FR: comprehensive explanation how to test function with firestore #1407

Closed
hyzhak opened this issue Nov 30, 2018 · 4 comments
Closed

FR: comprehensive explanation how to test function with firestore #1407

hyzhak opened this issue Nov 30, 2018 · 4 comments

Comments

@hyzhak
Copy link

hyzhak commented Nov 30, 2018

I guess it is Feature Request, because I can't found anything like this in the official docs here.

I'm looking for something like Firebase Functions has for unit and integration testing - Unit testing of Cloud Functions - comprehensive explanation how it should implement and which tools use and general recommendations how to mock and simulate/emulate Cloud FireStore locally or in CI env.

In particular I'm writing Firebase Function in Node.js which would use Firebase FireStore, for Actions of Google and I'd like to have good test coverage.

@hyzhak hyzhak changed the title FR: comprehensive explanation how to test function with firebase FR: comprehensive explanation how to test function with firestore Nov 30, 2018
@calidiHawk
Copy link

Any progress on this?

@mikelehen
Copy link
Contributor

cc/ @ryanpbrewster

We do have an emulator and testing SDK that may help. It's mostly targeted at testing your security rules right now. https://firebase.google.com/docs/firestore/security/test-rules-emulator

Does this help?

@samtstern
Copy link
Contributor

Apologies for the noise here, the bot closed this as stale because it didn't recognize the type: feature request tag, it was looking for feature-request. The config has now been updated.

@mikelehen
Copy link
Contributor

Although the bot was wrong, I think this issue is hopefully largely resolved by my comment above: #1407 (comment)

So I'm going to close anyway. :-) Please feel free to re-open if you have more feedback / questions. Thanks!

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

No branches or pull requests

5 participants