firebase / firebase/firebase-functions-python
testing support for concurrent HTTP calls and Firestore side effects in Firebase Cloud Functions (Python, Gen 2)
- Linguagem predominante
- Python
- Estrelas
- 167
- Forks
- 34
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Direção de pesquisa
Comece comparando a documentação de testes unitários de JavaScript do Firebase com o workflow solicitado do Python Gen 2 e, em seguida, analise as orientações vinculadas sobre concorrência do emulador do Firestore. A issue só estará completa quando uma abordagem reproduzível abranger requisições POST concorrentes, asserções sobre o estado do Firestore e o uso do Firebase Local Emulator.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- firebase, python
- Domínio
- backend, cloud, testing-qa
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100