firebase / firebase/firebase-functions-python

testing support for concurrent HTTP calls and Firestore side effects in Firebase Cloud Functions (Python, Gen 2)

Offen
#249 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature-request
Vorherrschende Sprache
Python
Sterne
167
Forks
34
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

What I’m looking for

* A Python testing approach or library that can help for generation 2 functions & firebase.
* Mock/simulate multiple concurrent POST requests.
* Assert Firestore database state after execution.
* Something that works well the firebase local emulator.

What I have tried so far

1. I have found testing documentation for js : https://firebase.google.com/docs/functions/unit-testing
2. Tried testing on firebase emulator with little success since concurrency behaviour greatly differs from production:https://cloud.google.com/firestore/native/docs/emulator#transactions
3. Unit test samples only involve js : https://github.com/firebase/functions-samples/tree/main?tab=readme-ov-file

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by comparing the Firebase JavaScript unit-testing documentation with the requested Python Gen 2 workflow, then review the linked Firestore emulator concurrency guidance. The issue is complete only when a reproducible approach covers concurrent POST requests, Firestore state assertions, and Firebase Local Emulator use.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
firebase, python
Bereich
backend, cloud, testing-qa
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.