Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Mit den Firebase-Emulatoren können Sie das Verhalten Ihrer App einfacher vollständig validieren und Ihre Firebase Security Rules-Konfigurationen prüfen. Mit den Firebase-Emulatoren können Sie Einheitentests in einer lokalen Umgebung ausführen und automatisieren.
Starten Sie den Emulator mit dem unten aufgeführten Befehl. Der Emulator wird während aller Ihrer Tests ausgeführt.
Cloud Firestore
firebase emulators:start --only firestore
Realtime Database
firebase emulators:start --only database
Cloud Storage
firebase emulators:start --only storage
Tests einrichten und Emulator ausführen
Nachdem Sie den Emulator installiert haben, können Sie Tests einrichten und Berichte erstellen, um das Verhalten Ihrer Regeln zu prüfen, bevor Sie sie in der Produktion bereitstellen.
[null,null,["Zuletzt aktualisiert: 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)."]]