This section covers best practices for testing and deploying Cloud Functions, discusses the types of tests you should use, and provides instructions for example testing scenarios. This section also has information on automatically running your tests and optionally redeploying your functions using a Continuous Integration and Deployment (CI/CD) platform such as Cloud Build.
Learn how to create unit, system, and integration testing with Cloud Functions.
Testing HTTP Functions
Learn how to test HTTP Cloud Functions. Cloud Functions can be either HTTP functions, or background functions.
Testing Background Functions
Learn how to test background Cloud Functions. You use background functions when you want to have your Cloud Function invoked indirectly in response to an event, such as a message on a Cloud Pub/Sub topic, a change in a Cloud Storage bucket, or a Firebase event.
Testing and CI/CD
Learn how to configure a continuous integration and deployment (CI/CD) pipeline to run Cloud Functions tests on an ongoing basis.