firebase / firebase/firebase-functions-python
testing support for concurrent HTTP calls and Firestore side effects in Firebase Cloud Functions (Python, Gen 2)
- Ngôn ngữ chính
- Python
- Star
- 167
- Fork
- 34
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách so sánh tài liệu kiểm thử unit JavaScript của Firebase với workflow Python Gen 2 được yêu cầu, sau đó xem lại hướng dẫn đã liên kết về tính đồng thời của trình giả lập Firestore. Issue chỉ hoàn tất khi một phương pháp có thể tái lập bao quát các yêu cầu POST đồng thời, các assertion về trạng thái Firestore và việc sử dụng Firebase Local Emulator.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- firebase, python
- Lĩnh vực
- backend, cloud, testing-qa
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100