2024-02-01
In this release, Diffblue Cover now supports writing tests for methods which use Kafka, and Cover Reports continues to receive enhancements, now allowing you to view total coverage across all of your projects. Also of note, Cover Plugin Community Edition now requires product verification (via a simple email registration) – you’ll be prompted in IntelliJ on install/upgrade. See the full Release Notes below for details of all enhancements and resolved issues covered by this release. One final note, looking forward to the next release (2024.02.02), the syntax for the --mock
, --mock-static
, --mock-construction
, and --exclude
arguments in Cover CLI will be changing (multiple values must be provided as a comma separated list) – as well as changing how you use these options on the command line, you may also need to consider potential changes to your argument files, scripts, pipelines, etc. For example: Previous format: dcover create --mock com.diffblue.Foo com.diffblue.Bar
New format: dcover create --mock=com.diffblue.Foo,com.diffblue.Bar
Enhancements
CLI: The capabilities of the
--mock-static
option in Cover CLI have been enhanced, including support for Spring Controllers. [Ref: TG-20723]Plugin: To prevent accidental deletion of test classes in IntelliJ, the Delete Tests gutter icon has been removed (for test classes). [Ref: TG-20691]
Cover: Diffblue Cover now supports writing tests for methods which use a Kafka Producer. [Ref: TG-20638]
Plugin: Cover Plugin Community Edition now requires product verification to continue use after the initial trial period. Users will be prompted on install/upgrade. [Ref: TG-20628]
Cover: Diffblue Cover license server connection has been improved. [Ref: TG-20616]
Cover: Diffblue Cover now uses
eq()
when creating verify statements for methods with String or primitive arguments. This replaces the use ofany()
. [Ref: TG-20608]Cover: Diffblue Cover now provides improved test writing capabilities for code involving complicated generics constructions. [Ref: TG-20516]
Reports: Cover Reports now provides total coverage statistics across all uploaded projects. [Ref: TG-19090]
Resolved Issues
Cover: Resolved an issue which under some circumstances caused Diffblue Cover to write tests with unnecessary casts. [Ref: TG-20720]
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