QuestionQ29

VerifiedBuilding and testing applications

You are using Cloud Build to build a Docker image. You need to update the build so that it executes unit and integration tests. If a failure occurs, you want Build History to clearly show the stage where the build failed.

What should you do?

Explanation

Cloud Build executes a build as a sequence of build steps and records an individual status for each step. Separate builder steps for compiling and running unit and integration tests make the failing stage visible in Build History, rather than combining all test activity into the Docker image build or one undifferentiated step.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!