firebase / firebase/firebase-functions-python
testing support for concurrent HTTP calls and Firestore side effects in Firebase Cloud Functions (Python, Gen 2)
- Dominant language
- Python
- Stars
- 167
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- firebase, python
- Domain
- backend, cloud, testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100