2024-12-01

2024-12-01

This release introduces support for IntelliJ IDEA 2024.3 and removes support for 2024.1. It also resolves various issues with the CLI, Plugin and Reports.

Important Notices

Deprecations

  • IntelliJ IDEA 2024.1: Support for IntelliJ IDEA 2024.1 ended with Cover 2024.11.02. Starting with Cover 2024.12.01, only IntelliJ IDEA versions 2024.2 and 2024.3 are supported.

Changes to test code

  • Test Method Ordering: In an upcoming release, Cover will adjust test method ordering and imports for inner classes. This will cause a one-time churn, resulting in larger-than-usual diffs in your test code.

Diffblue Cover is now generally available to individual developers and small teams.

We've just launchedarrow-up-right our Developer Edition license. From today, individual developers can leverage the power of AI they can trust for unit test generation and maintenance.

Enhancements

  • Refactor: Diffblue Cover is now able to automatically fix issues with Surefire plugin configuration [Ref: TG-22370]

  • Cover now supports Gradle 8.11.x. [Ref: TG-22305]

  • Plugin: Cover now displays a progress dialog after clicking 'Accept All' when the Test Review beta feature is enabled, showing the progress of inserting tests into the codebase. [Ref: TG-22244]

  • Plugin: Cover now supports IntelliJ IDEA Community Edition 2024.3 and IntelliJ IDEA Ultimate 2024.3. [Ref: TG-21975]

Resolved Issues

  • Reports: Resolved an issue which caused performance problems, for some deployments, while loading Telemetry graphs. Graphs are now split across tabs to improve page load times. [Ref: TG-22414]

  • CLI: Resolved an issue which, in some circumstances, could cause dcover fix-build or dcover refactor to report FAILURE: Build failed with an exception. on a Gradle project. [Ref: TG-22374]

  • CLI: Resolved an issue which caused Cover to report Recipe validation error in [...] while attempting to run dcover fix-build. [Ref: TG-22358]

  • Resolved an issue which prevented Cover from writing assertions for methods that statically returned object while returning a boolean at runtime. [Ref: TG-22325]

  • Resolved an issue which could cause test validation to fail when a particular combination of Maven plugins were present. [Ref: TG-22299]

  • Resolved an issue which, in some circumstances, caused Cover to report F009 (Internal Error) while writing tests for code involving an ObjectMapper and Jackson Databind < 2.2.0. [Ref: TG-22296]

  • Resolved an issue which, in some circumstances, for some project configurations, could cause environment checks to report an inaccurate JaCoCo coverage. [Ref: TG-22219]

Known Issues

  • Plugin: Cover incorrectly provides a menu option to write tests for a test file. [Ref: TG-17163]

  • 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]

  • Reports: Cover only counts Java code towards the total line count metrics. Kotlin code is not currently included. [Ref: TG-22088]

  • Reports: Total lines of code metric can incorrectly count a multi-line comment at the end of a line of code, resulting in fewer than expected lines counted. [Ref: TG-22089]

  • Reports: Following an upgrade, the 'Total Lines of Code' card may show 0 until a new reports bundle has been uploaded. [Ref: TG-22094]

  • In some circumstances, Cover may write more simplistic tests with less meaningful assertions when Spring Boot dependency injection is disabled. [Ref: TG-22102]

  • In some circumstances, Cover will still write Spring Boot tests when Spring Boot dependency injection is disabled. [Ref: TG-22103]

  • Cover may write failing TestNG tests when Spring Boot dependency injection is disabled. [Ref: TG-22107]

Last updated

Was this helpful?