Vinod Jayachandran
Vinod Jayachandran

Reputation: 3898

How to test Google Cloud Storage Triggers Cloud Function locally?

With reference to Google Cloud Storage Triggers , I wrote a background function which gets triggered from GCS. Using GCP Function Framework for Java, is it possible to test it locally ?

Upvotes: 2

Views: 2794

Answers (1)

tzovourn
tzovourn

Reputation: 1321

You can test locally your Cloud Function triggers by running integration tests.

Integration tests should trigger and respond to actual Cloud events such as HTTP requests, Pub/Sub messages, or Storage object changes.

Source

Here you may find more information for testing background Cloud Functions.

Upvotes: -1

Related Questions