firebase / firebase/firebase-functions-python

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

未关闭
#249 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
feature-request
主要语言
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。