2024-02-02

This release includes a number of syntax and argument changes in Cover CLI as detailed below. Also, Diffblue Cover now supports Mockito 5.10.x, and also supports writing tests for Kafka Producers in a Spring Context. See the full Release Notes below for details of all enhancements and resolved issues covered by this release. One final note, if you're a frequent user of our docs site, you'll notice some significant updates to our topic structure to help improve your learning experience.

Enhancements

  • Reports: Cover Reports now allows projects to be managed, migrated and moved between groups, enabling flexible organization of data. [Ref: TG-20953]

  • CLI: The --disable-mock-inputs, --existing-coverage, --max-class-length, --merge, --skip-if-service-out-of-resources, and --skip-validation arguments have been hidden in Cover CLI. These remain valid but may be removed in future releases. [Ref: TG-20910]

  • CLI: The --output-comments and --spring-configuration arguments have been added to Cover CLI and are also documented in the Commands & Arguments topic. [Ref: TG-20883]

  • Cover: Diffblue Cover now supports Mockito 5.10.0. [Ref: TG-20842]

  • Plugin: SSO options are now available for verifying Cover Plugin Community Edition. [Ref: TG-20757]

  • Cover: A performance improvement has been applied to Diffblue Cover for the processing of XML project configuration files. [Ref: TG-20747]

  • Cover: Diffblue Cover now writes tests which use arguments of Jackson annotated types for methods which serialize objects using ObjectMapper.writeValueAsString [Ref: TG-20728]

  • Cover: Diffblue Cover now writes tests which use improved JSON strings as input arguments for methods which deserialize strings using ObjectMapper.readValue [Ref: TG-20717]

  • Cover: Diffblue Cover now supports writing tests for Kafka Producers in a Spring Context. [Ref: TG-20687]

  • Cover: Cover CLI now automatically detects the project name from the build system and uses this for Cover Reports. Cover CLI's --project option has been deprecated. [Ref: TG-20673]

  • CLI: The syntax for --mock, --mock-static, --mock-construction, and --exclude has changed - multiple values must be provided as a comma-separated list. This command line change may also impact your argument files, scripts, pipelines, etc. [Ref: TG-19173]

Resolved Issues

  • Reports: Resolved a minor navigation issue in Cover Reports which required a double-click to select the Map tab. [Ref: TG-20867]

  • CLI: Resolved an issue which, under some circumstances, caused Cover CLI to fail with E011: Failed to run a simple example test when Cover Optimize is enabled. [Ref: TG-20505]

  • Cover: Resolved an issue which under some circumstances caused Diffblue Cover to write tests for modules that only contain test code. [Ref: TG-20443]

Known Issues

  • Plugin: Cover Plugin incorrectly gives the option to write tests for a test file using the menu option, while in the IDE editor. [Ref: TG-17163]

  • Cover: Diffblue Cover may produce tests for JUnit 4.10 and lower that do not compile due to the use of assertNotEquals. [Ref: TG-17605]

  • Cover: Diffblue Cover supports Open JDK and Oracle JDK; results with other JDKs may differ due to the variability in their implementations of Java. [Ref: TG-19345]

  • Cover: Cover may encounter an F009: Internal error while writing tests using Mockito 5. To avoid this issue use a version of Mockito earlier than 5. [Ref: TG-19610]

  • Plugin: Under some circumstances, when writing tests at a Class level, Cover will delete an existing getter test. [Ref: TG-20611]

  • Plugin: Under some circumstances, when writing Java tests for Kotlin code, Cover may produce non-compiling tests. [Ref: TG-20759]

Last updated