Best practices for running different tests in a CI/CD pipeline

We described the the following stages in Chapter 3, Basics of Continuous Delivery:

  1. The first stage of a CI/CD pipeline will typically encompass a build and commit stage. This is where you build any artifacts needed for the rest of the pipeline and run your unit test suite in the build. The first stage is meant to be very fast running as developers need to have a short feedback loop or else you risk developers bypassing this stage.
  2. The second stage of a CI/CD pipeline will typically run integration tests as they are longer running types of tests and can be run after the first stage of the pipeline runs and passes. The second stage is a layer of assurance that any new functionality ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.