firebase / firebase/firebase-functions-python
testing support for concurrent HTTP calls and Firestore side effects in Firebase Cloud Functions (Python, Gen 2)
- 主要語言
- Python
- 星號
- 167
- 分支
- 34
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
貢獻指南
研究方向
先比較 Firebase JavaScript 單元測試文件與所要求的 Python Gen 2 工作流程,然後檢視連結的 Firestore 模擬器並行處理指引。只有當可重現的方法涵蓋並行 POST 請求、Firestore 狀態判斷以及 Firebase Local Emulator 的使用時,該 issue 才算完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- firebase, python
- 領域
- backend, cloud, testing-qa
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100