CI\CD for GCP Serverless Cloud Functions — 002 — Testing

Soliman ElSaber
Nov 1 · 8 min read

We want to run our test on the code before deploying it, so we don’t deploy a Cloud Function that breaks our serverless application.

If you just starting with CI\CD for CloudFunction on GCP, I recommend you read this article first: CI\CD for GCP Serverless Cloud Functions — 001

So, we need to have a test script for our function, and we need to run this test after we push the code to our repository.

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade