Prerequisites for installing the Diffblue Cover Plugin for IntelliJ
- IntelliJ version 2022.2 or later
- Java 8 (version 161+), Java 11 (but please note that Java 11.0.7 is NOT supported) or Java 17 source code. Only 64 bit Java is supported.
- Maven or Gradle-based project
- JaCoCo 0.8.3 or above
- 16 GB RAM, 4 CPU cores
- 2 GB minimum memory requirement (to amend this in IntelliJ, select
Change Memory Settings)
- Your project must compile and run.
Diffblue Cover runs the tests that it writes for your code, so your project must compile and run for Cover to work properly.
Your project configuration (e.g.,
pom.xml for Maven projects) must include all required dependencies, and they must all have been built or downloaded (e.g., by doing
mvn clean install for Maven projects). JUnit is always a required dependency.
|JUnit (||Always unless using Spring or Spring Boot||4.7+|
|Spring Boot Test (||When using Spring Boot (||2+, matching version|
|Spring Test (||When using Spring (||4.2.5+, matching version|
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 Event Log indicating a missing dependency.
|Java Servlet API (||4+, matching version|
|JSR107 API and SPI (||0.2+, matching version|
|Spring Boot Starter Test (||2+, matching version|
|Spring Security Config (||4.2.1+, matching version|
|Spring Web MVC (||5+, matching version|
Please note that you can only run one instance of the Diffblue Cover plugin for IntelliJ on a project. Running more than one instance on the same project is NOT supported.
The Diffblue Cover IntelliJ plugin requires 4GB of memory to run effectively. If you do not have enough memory available, Diffblue Cover will automatically adjust the memory setting. You can undo this change (but please note that your IDE may be unstable without sufficient memory).
If you wish to adjust the available memory manually, please go to Help - Change Memory Settings and amend the Maximum Heap Size to at least 2048, as shown below.
This will update the memory allocation in your
.vmoptions file. Please restart your IDE for these changes to take effect.