Skip to content

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

@HouseOfCode0

Description

@HouseOfCode0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions