Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions