Specs & Reqs

Prerequisites

Diffblue Cover requires that the system environment (hardware, operating system, network connectivity, Java installation) as well as the project environment (build tooling, dependencies, presence of artifacts, existing unit tests) meet the minimum requirements as outlined below. Diffblue Cover will perform an environment check before analysis begins to ensure that the requirements are met.

Cover CLI provides a --preflight option (see Preflight checks) which can be used to check the status of the prerequisites without performing the project analysis. This option can also be run without a license key.

Cover Plugin & Cover CLI

  • 32 GB RAM, 5 GB minimum available disk space, 4 CPU cores

  • 8GB Java heap allocated

  • TCP connection *

  • Windows 11 Pro, Windows 10 Enterprise, Ubuntu 18.04, RHEL 7.7, macOS 10.15

  • The latest or n-1 64-bit sub-version of Java 8 (8u391 & 8u381), Java 11 (11.0.21 & 11.0.20), Java 17 (17.0.9 & 17.0.8), Java 21 (21.0.1)

  • For Maven projects: Maven version 3.2.5+

  • For Gradle projects: Gradle version 4.9+ (must be compatible with your version of Java).

  • For Ant projects: access to the complete Ant classpath

  • JUnit 4.11 - 4.13, JUnit 5.0 - 5.11.3, or TestNG 6.0.1 - 7.10.2.

  • For Java 8 projects: Mockito 1.9.5 - 4.11.0

  • For Java 11 projects: Mockito 2.22.0 - 5.14.2

  • For Java 17 projects: Mockito 4.1.0 - 5.14.2

  • For Java 21 projects: Mockito 4.1.0 - 5.14.2

  • For Kotlin projects: one of the above versions of Java and associated Mockito

  • All necessary tooling to build the project

  • The project must compile and run with no failing unit tests

  • Access to a dependency repository to download transient dependencies

  • Access to the Diffblue licensing server for remote license check

* Cover requires the use of an analysis service that communicates with Cover Plugin and Cover CLI via TCP connections on localhost. In particular, Cover must be able to start up the analysis service and open a bi-directional TCP connection between the frontend and the service.

Cover Plugin

  • IntelliJ Community or Ultimate version 2024.3 and 2024.2

  • One instance of the Diffblue Cover Plugin for IntelliJ, per project

  • A minimum of 4GB memory allocated to IntelliJ

Cover Pipeline for GitLab

  • GitLab subscription - Free, Premium, or Ultimate Edition.

Cover Reports

Server hosting Cover Reports - Cover Reports Administrator:

  • 4GB RAM (8GB recommended), 2GB* minimum available disk space, 4 CPU cores.

  • 2GB Java heap allocation, 4GB recommended.

  • Docker Install - Docker Engine 20.10.17, Docker Compose v2.10.2, and if you're using Docker Hub you'll also need an internet connection.

  • Zip Install & Windows Installer - Java JDK 17+ (and available in your PATH system environment variable). For production use, you'll also need to provide a vanilla PostgreSQL 14 database (see Cover Reports > Configuration options).

  • Windows Install - Windows Server 2019 and above, Windows 10 and above.

  • All - Network connectivity between the server(s) and client workstations. Note that if the Cover Reports server and database server are on different hosts, good network connectivity between them will ensure good performance.

* Note that the database server will store the data uploaded to Cover Reports. Sufficient storage should be ensured for projected usage.

Client workstation - Cover Reports Contributor:

  • Diffblue Cover CLI

  • Java 8 and 11 Projects: JaCoCo 0.8.3+

  • Java 17 Projects: JaCoCo 0.8.7+

  • Java 21 Projects: JaCoCo 0.8.11+

  • Network connectivity between the user's workstation and the Cover Reports server.

Client workstation - Cover Reports User:

  • The latest version of Chrome, Edge, Safari, or Firefox with a screen resolution of 1920 x 1080 or higher.

  • Network connectivity between the user's workstation and the Cover Reports server.

Cover Refactor

OpenRewrite Maven or Gradle plugin (and its transitive dependencies) must be available in your local Maven or Gradle mirror.

  • OpenRewrite Gradle plugin: 6.12.0

  • OpenRewrite Maven plugin: 5.28.0

Spring

Spring and Spring Boot versions are required to be compatible with your version of Java, as well as each other. Diffblue Cover supports the following:

  • Java 8 Projects: Spring Boot 1.3.3 to 2.7.x, Spring Core 4.1.1 to 5.3.x

  • Java 11 Projects: Spring Boot 2.1.0 to 2.7.x, Spring Core 5.1.0 to 5.3.x

  • Java 17 Projects: Spring Boot 2.4.0 to 3.1.x, Spring Core 5.3.1 to 6.0.x

  • Java 21 Projects: Spring Boot 2.4.0 to 3.1.x, Spring Core 5.3.1 to 6.0.x

  • Kotlin Projects: any of the above combinations to support the Java tests

Dependencies

Dependencies required for running tests should be in the project configuration. Additional libraries may also be necessary depending on the project under test.

Other dependencies listed below may be needed, if they are transitive dependencies of your project. If one of these dependencies is required but missing, tests will be generated for some classes but not others. A message will appear in the console output indicating a missing dependency.

Spring projects and Hamcrest

Either:

  • Use the spring-boot-starter-test dependency to add Hamcrest.

  • Add org.hamcrest:hamcrest. The version of Hamcrest needs to match the relevant version of spring-boot-test. For example, if the user has spring-boot-test:2.4.6, they should look at the dependency list: Maven Repository: org.springframework.boot spring-boot-starter-test 2.4.6. This shows that the matching version is Hamcrest 2.2 (you may have to scroll).

Spring WebFlux projects and Spring Security

When Spring Security is configured for a project in order to unlock full test generation capabilities for Spring WebFlux controllers write a custom configuration to deactivate CSRF(Cross-Site Request Forgery) security for unit tests, which can later be imported in the base class for your test:

@Configuration
@EnableWebFluxSecurity
public class WebFluxTestConfig {
@Bean
public SecurityWebFilterChain filterChain(ServerHttpSecurity http) {
    return http.csrf().disable().build();
  }
}

System Specifications & Requirements

Supported Operating Systems

Supported IntelliJ Versions

Cover Plugin for IntelliJ supports the latest and the previous versions of IntelliJ.

Supported Java Versions

Note that only 64 bit versions of Java are supported.

Supported Jakarta EE Versions

* Note that Diffblue Cover does not use Jakarta EE application context for tests, all injected dependencies will be mocked.

Supported Spring Versions

Spring, Spring Boot and Spring WebFlux versions are required to be compatible with your version of Java, as well as each other.

Supported Kotlin Versions

Currently all 64 bit versions of Kotlin are supported.

Note that Cover writes Java tests for Kotlin code, so you will also need a suitable Java installation with appropriate Java dependencies.

Supported Build Tools

Supported Test Frameworks

JUnit 4

Diffblue Cover supports JUnit 4, from JUnit 4.11 to JUnit 4.13. In the CLI, you can force the usage of JUnit 4 by passing the --testing-framework=junit-4 option. In the plugin, you can select JUnit 4 as a testing framework in the settings dialog.

JUnit Jupiter 5

Diffblue Cover supports JUnit Jupiter, from JUnit Jupiter 5.0 to JUnit Jupiter 5.11.3 In the CLI, you can force the usage of JUnit 5 by passing the --testing-framework=junit-5 option. In the plugin, you can select JUnit 5 as a testing framework in the settings dialog.

You may need some specific set-up for your build system to work properly with JUnit 5, in particular if you wish to use Diffblue Cover's built-in test validation. See Building a Gradle project or Building a Maven project for details.

TestNG 6 and 7

Diffblue Cover supports TestNG versions 6 and 7. In the CLI, you can force the usage of TestNG by passing the --testing-framework=testng option. In the plugin, you can select TestNG as a testing framework in the settings dialog.

Supported Mock Frameworks

Supported JaCoCo Versions

Coverage Measurement

Creating Tests - Scope

* For Cover Plugin, this feature is not available in the Community Edition.

** For Cover Plugin, this feature is only available in the Enterprise Edition.

Cover Reports

* For Cover Reports, when using our Docker distribution Postgres 14 is included. When using Zip distribution, H2 is included. However you can provide a self hosted Postgres 14 database for production purposes. We support vanilla Postgres 14. Postgres 15+ versions and alternative distributions can be used at your own risk.

Last updated