This PR added the support of RTDB Emulator, discussion is here #298
Testing
I have manually ran the unit tests and integration tests and verified that they pass. Now we can also test them against the emulator by the environment variable FIREBASE_DATABASE_EMULATOR_HOST.
For example:
FIREBASE_DATABASE_EMULATOR_HOST=http://localhost:9000/?ns=foo-default-rtdb go test ./db
FIREBASE_DATABASE_EMULATOR_HOST=http://localhost:9000/?ns=foo-default-rtdb go test ./integration/db
Discussion
This PR added the support of RTDB Emulator, discussion is here #298
Testing
I have manually ran the unit tests and integration tests and verified that they pass. Now we can also test them against the emulator by the environment variable
FIREBASE_DATABASE_EMULATOR_HOST
.For example:
API Changes
No public API changes