# Cover Pipeline for CI

Integrating Diffblue Cover into a CI pipeline provides the fastest and most comprehensive way to protect your codebase from regressions. Diffblue Cover CLI is triggered by your CI orchestration tool on each pull-request/merge request to:

* Automatically write new unit tests for new code.
* Automatically update existing unit tests in your code.
* Automatically notify about untestable code.
* Automatically make the code testable using Diffblue Cover Refactor.
* Automatically optimize the running of your unit tests with Diffblue Cover Optimize.

Cover Pipeline is completely flexible to fit into your workflow - you can customize how, when, and where Diffblue Cover is triggered so your workflow remains as natural as possible.

## Cover Reports in CI

Cover Pipeline can also automatically Diffblue Cover CLI on a regular basis to generate and upload to Cover Reports.

***

See [quick-start-guide-general](https://cover-docs.diffblue.com/features/cover-pipeline/cover-pipeline-for-ci/quick-start-guide-general "mention") for information on how to use Diffblue Cover to write tests for your project as part of a CI pipeline. The topic outlines the basic commands that you will need to add to your CI scripts, but provides general information to understand the key steps - for specific CI tools, refer to the following:

* [quick-start-jenkins](https://cover-docs.diffblue.com/features/cover-pipeline/cover-pipeline-for-ci/quick-start-jenkins "mention")
* [quick-start-guide-azure](https://cover-docs.diffblue.com/features/cover-pipeline/cover-pipeline-for-ci/quick-start-guide-azure "mention")
* [quick-start-guide-aws](https://cover-docs.diffblue.com/features/cover-pipeline/cover-pipeline-for-ci/quick-start-guide-aws "mention")

<div align="left" data-full-width="false"><figure><img src="https://1243928156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ7l8pn8qoIC3ubiJzuaF%2Fuploads%2Fgit-blob-d1cff1e02504fea1e79ee94a7174c5d673d1ecf9%2FDiffBlue-CI-Workflow-2024.jpg?alt=media" alt=""><figcaption></figcaption></figure></div>
