Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dengan Emulator Firebase, Anda dapat sepenuhnya memvalidasi perilaku aplikasi dan memverifikasi konfigurasi Firebase Security Rules dengan lebih mudah. Gunakan Emulator Firebase untuk menjalankan dan mengotomatiskan pengujian unit di lingkungan lokal.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[],[],null,["# Set up the Local Emulator Suite\n\n\u003cbr /\u003e\n\nThe Firebase Emulators make it easier to fully validate your app's behavior and\nverify your Firebase Security Rules configurations. Use the Firebase Emulators to\nrun and automate unit tests in a local environment.\n| **Beta**\n|\n| Some of the Firebase Emulators are currently in Beta. These\n| products might be changed in backward-incompatible ways and are not subject to\n| any SLA or deprecation policy. As always, feedback is greatly appreciated.\n| Let us know what you think!\n\nInstall the Firebase Emulators\n------------------------------\n\nBefore you begin make sure you have installed the [Firebase CLI](/docs/cli)\nand configured the [Firebase Local Emulator Suite](/docs/emulator-suite/install_and_configure)\n\nStart the emulator using the following command. The emulator runs during\nall your tests. \n\n### Cloud Firestore\n\n```text\n firebase emulators:start --only firestore\n \n```\n\n### Realtime Database\n\n```text\n firebase emulators:start --only database\n \n```\n\n### Cloud Storage\n\n```text\n firebase emulators:start --only storage\n \n```\n\nSet up tests and run the emulator\n---------------------------------\n\nNow that you've installed the emulator, [set up tests](/docs/rules/unit-tests) and\n[generate reports](/docs/rules/emulator-reports) to validate your rules' behavior before\nyou deploy them to production.\n\nQuickstart\n----------\n\nFor a few basic test cases with simple rules,\ntry out the [testing quickstart](https://github.com/firebase/quickstart-testing)."]]