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

What do you think about using real firebase for integration tests, instead of mocks? #57

Open
kchnr opened this issue Aug 24, 2017 · 2 comments

Comments

@kchnr
Copy link

kchnr commented Aug 24, 2017

When it comes to database, it's hard to ensure with mocking that your code actually works, mainly because it's a big chaing of function calls that you don't even ensure it works, since you're basically testing the mock.

Usually what fails when it comes to database are configurations, and configuration you can only test using the actual thing.

Here's how to setup firebase locally:
https://firebase.googleblog.com/2015/04/end-to-end-testing-with-firebase-server_16.html

@eduardomoroni
Copy link
Contributor

Bem válido, na verdade se tivessemos algo desse tipo antes da hack night seria muito mais facil desenvolver as estórias.

@eduardomoroni
Copy link
Contributor

@gosantos sugeriu também usarmos o mesmo firebase mas com um "schema" diferente para teste.
Procurarei saber como podemos fazer isso

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

No branches or pull requests

2 participants