Get started - Cover Optimize
Last updated
Last updated
Diffblue Cover Optimize speeds up the time required to run Java unit tests by running only the tests in your project that are relevant to your code change (defined in a patch file). Cover Optimize is provided as a:
Gradle Plugin - The plugin acts as a wrapper around Cover CLI, invoking Diffblue Cover Optimize before the Gradle Test
task. The plugin calculates the impact of the patch file on your codebase and applies filters to the Test
task to ensure that Gradle only runs the tests relevant for the changes introduced.
Maven Plugin - The plugin acts as a wrapper around Cover CLI, invoking Diffblue Cover Optimize during mvn test
or mvn verify
, and feeding its output into Maven’s Surefire & Failsafe plugins in order to only run the tests exercised by the patch.
Cover Optimize can be used by developers using Cover CLI, reducing wait time and saving workstation loading, but can also be integrated directly into your CI Pipeline (with Cover Pipeline) saving cloud computing costs and optimizing PR workflows.
Prefer video? No problem. Check out our getting started video.
The configuration required for Gradle and Maven is quite different so please refer to Cover Optimize & Gradle and Cover Optimize & Maven for getting started information specific to each build tool.
Note that Cover Optimize is currently not available for Cover Pipeline for GitLab.