-
Notifications
You must be signed in to change notification settings - Fork 93
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
Idea: a way to run cloud_firestore_mocks_test.dart with real Firestore #17
Comments
Authentication is a challenge. Firebase Emulator does not require authentication. https://firebase.google.com/docs/rules/emulator-setup. Using the emulator to develop cloud_firestore_mocks. The cloud_firestore_mocks users can benefit from easy Firestore unit tests (without setting up the emulator). |
Integration Test with contributor's dummy Firebase project (no security)(Didn't work) Test Structure
The driver app cannot touch firestore package either, because it depends on "dart:ui".
Instruction
My memo: https://gist.github.com/suztomo/eb37e00a0d0d8f364245e775d7af2861 |
Integration test for test app that calls CloudFirestoreMockTests with a dummy (real) firebase projectCan test-driver/app.dart call CloudFirestoreMockTests from runApp? |
What about these integration tests? They seem to be doing what you are trying to do. Why do they not fail as well? Did you get a chance to try with the Emulator that you mentioned? It would make it cleaner since we wouldn't need to create an actual account and a test database. |
Thank for the reference for the integration test. It should work as long ad test code is in app side, not driver code. I will give it a try. Emulator with widget test didn’t work for me. |
Found example directory.
|
I wish there is a way to run the test with real Firestore instance. With such setup, contributors of this repository feel confident that cloud_firestore_mocks follows the behavior of the real implementation.
The text was updated successfully, but these errors were encountered: