2023-06-01

This release enhances the utilization of mocks for more efficient test writing, improves compatibility checks, and provides Gradle project support in Cover Refactor. See the full Release Notes below for details.

Enhancements

  • Cover: Diffblue Cover now attempts to write tests which utilize mocks in the arrange section instead of writing lengthy arrange sections. This provides improvements in both efficiency and readability of the tests generated by Cover. [Ref: TG-19094]

  • CLI: Cover's environment checks now ensure that the specified junit-vintage-engine and JUnit versions are compatible. [Ref: TG-19170]

  • CLI: Cover Refactor now supports Gradle and Java 17 projects. See the Cover Refactor: Getting Started documentation for usage information. [Ref: TG-18156]

  • Reports: Cover now removes the demo project once a reports bundle has been uploaded. [Ref: TG-19027]

Resolved Issues

  • CLI: Resolved an issue which caused Cover to incorrectly report Java 17.x.x not supported by refactoring when executing dcover refactor on a project while using Java 17. [Ref: TG-19278]

  • CLI: Resolved an issue which caused Cover to incorrectly report the number of lines of code covered by the tests written during the run, leading to inaccurate logging on the console. [Ref: TG-19199]

  • CLI: Resolved an issue which, in some circumstances, caused Cover to incorrectly report R013 (No inputs found that don't throw a trivial exception) instead of R011 (Sandboxing policy violation). [Ref: TG-18733]

  • Reports: Resolved an issue which caused Cover Reports to display Application error: a client-side exception has occurred [...] when navigating to the URL of a deleted project. [Ref: TG-19296]

  • Reports: Resolved an issue which, in some circumstances, caused Cover to provide an inaccurate count of lines of code which are not covered by tests. [Ref: TG-19277]

  • Reports: Resolved an issue which, when using older versions of JaCoCo (< 0.8.7), caused Cover to report an inaccurate test count. Upgrade to 2023.06.01 and upload a new reports bundle to correct any previously inaccurate counts. [Ref: TG-19193]

Known Issues

  • Cover may produce tests for JUnit 4.10 and lower that do not compile due to the use of assertNotEquals. [Ref: TG-17605]

  • IntelliJ Plugin: Upgrading to IntelliJ IDEA 2022.3 may, in some circumstances, cause existing run configurations to no longer produce tests. Removing any run configurations for that entity and writing tests again will recreate a working run configuration. [Ref: TG-18282]

Last updated