What's New > Version 2022.07.02
Update to Diffblue Cover's handling of NullPointerExceptions
Release date: Jul 19, 2022
Update to Diffblue Cover’s handing of NullPointerExceptions
Diffblue Cover now handles
try / catch blocks.
Try blocks contains a set of statements where an exception can occur. A
catch block will be used to handle any exceptions that occur as a result of the
try block. A
try block is always followed by a
catch block and there can be multiple
This update means more tests and greater coverage!
Developer Edition trial available
We are delighted to now offer a 14-day trial version of our Developer Edition, which includes the Diffblue Cover CLI, as part of our new licensing option. We’re really excited that you can now “try before you buy”! To download your trial of Diffblue Cover Developer Edition, please click here. Full information on all our options is also available here.
How do I automatically maintain all of these tests?
Use Diffblue Cover on any CI platform to automatically update your unit tests and catch regressions for every commit - watch this video to learn more.
Full Release Notes
Cover now detects class loading issues (
R006) early and logs them in a more succinct and readable way. [Ref: TG-17351]
Cover now handles
NullPointerExceptions found in
catchblocks the same as ones which are thrown. [Ref: TG-15203]
Cover now has an improved log message for
MethodGroupfailure reasons. [Ref: TG-17422]
- Resolved an issue which, in some circumstances, caused Cover to not write a Spring test when
mockito-inlineis included in the project’s dependencies. [Ref: TG-17282]
CLI: The command
dcover clean --failingdoes not work on Gradle projects. This command is now deprecated and
dcover validateshould be used instead. [Ref: TG-11707]
For multi-module projects,
--coverage-reportsneeds to be run in the sub-modules, not from root module with
--working-directory. [Ref: TG-16876]