In a CI/CD pipeline, tests are automated and run at various stages of the pipeline, from code integration and build to deployment, to ensure that each phase of the release process is validated.