2024-08-02

This release enhances the quality of assertions in unit tests written by Cover, improving both readability and overall test quality. Test writing performance has been improved, especially for projects using Apache Flink. Cover Plugin now supports IntelliJ IDEA 2024.2 and has an improved tool panel window shown while writing tests. Cover Pipeline now supports running in any CI/CD environment which uses git version control.

Important Notices

Removals

  • IntelliJ IDEA 2023.3: With the introduction of support for IntelliJ IDEA 2024.2, support for IntelliJ IDEA 2023.3 has been removed in this release.

Enhancements

  • CI: Commit messages made by Cover Pipeline now include the Diffblue Cover version used to write tests. [Ref: TG-21821]

  • Reports: Reports bundles can now be produced and uploaded to Cover Reports using coverage-reports without needing to run test generation via create. Cumulative test counts will be shown on the overview as a 'Number of Diffblue Tests' card. [Ref: TG-21789]

  • CLI: Diffblue Cover Pipeline now supports running in any CI/CD environment using git version control. [Ref: TG-21788]

  • Cover now writes tests with more concise assertions for StringWriter(). [Ref: TG-21715]

  • Cover now writes tests faster, with up to 10x speed improvements for projects which use Apache Flink. [Ref: TG-21656]

  • Cover now has improved method-under-test analysis, resulting in tests being written with more valuable assertions. [Ref: TG-21608]

  • Plugin: Cover now supports IntelliJ IDEA Community Edition 2024.2 and IntelliJ IDEA Ultimate 2024.2. Support for IntelliJ IDEA 2023.3 has been removed. [Ref: TG-21423]

  • Plugin: Cover's tool panel window has been redesigned. When writing tests, Cover will now display visual cards containing the count of tests created, as well as the count of pending methods under test. [Ref: TG-21289]

Resolved Issues

  • Resolved an issue which, in some circumstances, could cause F009 (Internal Error) to be reported while writing tests where Spring XML configurations are used. [Ref: TG-21813]

  • Resolved an issue which caused Cover to not provide the most useful and informative Spring error message when encountering R026 (Failed to create Spring context). [Ref: TG-21744]

  • Plugin: Resolved an issue which, in some circumstances, could cause Cover to get stuck at the 'Checking environment' phase. [Ref: TG-21604]

  • CLI & Plugin: Resolved an issue which, in some circumstances, caused Cover to report an incorrect output code and remediation advice, when using an unsupported version of JUnit [Ref: TG-21564]

  • CLI: Resolved an issue where Cover did not detect all the projects with identical names from a Gradle multi-project build. Cover now identifies the Gradle sub-projects by their path. This affects the arguments passed to the --exclude-modules. [Ref: TG-21052]

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]

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

Last updated