Testing Firestore rules using Emulator Suite

Aseem Wangoo
CodeChai
Published in
5 min readOct 28, 2019

--

Testing Firestore rules using Emulator Suite

This year, Firebase introduced changes into their Emulator Suite, which allows testing at ease….

Article on Website: https://flatteredwithflutter.com/__trashed/

Begin…

Testing Firestore rules using Emulator Suite

Firebase Local Emulator Suite consists of individual Firebase service emulators built to mimic the behavior of Firebase services. This means you can connect your app directly to these emulators to perform integration testing or QA without touching production data.

For example, you could connect your app to the Firestore emulator to safely read and write documents in testing. These writes may trigger functions in the Cloud Functions emulator. However, your app will still continue to communicate with production Firebase services when emulators are not available or configured.

--

--