2024-07-03
This release further improves the quality of assertions in unit tests written by Cover, adds support for writing tests for Java 22 projects and relaxes the character restrictions on the CLI's --location
and --project-name
options when uploading to Cover Reports. Full details of these updates can be found in the release notes.
Enhancements
Cover now writes tests with more robust assertions for
File
andPath
objects by not relying on environment-dependent assertions. [Ref: TG-21590]Cover now more effectively selects optimal assertions when writing tests for getters and setters. [Ref: TG-21589]
CLI & Reports: Cover's
--location
and--project-name
options now accept all characters except\
,/
,;
, and%
, which will be automatically removed during upload if present. [Ref: TG-21418]Plugin: Cover now provides a button, in the Diffblue Cover tool window, to easily open user logs, support logs and the log folder. [Ref: TG-21248]
Cover now supports writing tests for Java 22 projects. [Ref: TG-21140]
Cover now writes tests which provide an input to
SimpleDateFormat
, resulting in more consistent and portable date formatting. [Ref: TG-20800]Cover now instantiates
CharSequence
,StringBuffer
,StringBuilder
, andByteBuffer
objects using aString
where applicable, resulting in stronger assertions and improved line coverage when writing tests for some methods. [Ref: TG-20796]Cover now writes tests which use existing implementations of
BiFunction
andBiPredicate
functional interfaces when appropriate. [Ref: TG-20686]
Resolved Issues
Resolved an issue which caused Cover to report a custom validation command failure when running
dcover validate
within an IntelliJ IDEA terminal. [Ref: TG-21522]Plugin: Resolved an issue where, in certain circumstances, writing Java tests for Kotlin code caused Cover to create non-compiling tests. [Ref: TG-20759]
Known Issues
Plugin: Cover incorrectly provides a menu option to write tests for a test file. [Ref: TG-17163]
CLI & Plugin: Cover may write tests for JUnit 4.10 and lower that do not compile due to the use of
assertNotEquals
. [Ref: TG-17605]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]
In rare circumstances 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]
Last updated