2024-07-04

This release includes improvements to the quality of assertions in unit tests written by Cover and resolves issues within Cover Reports.

Important Notices

Removals

  • JUnit 4.7-4.10: Support for JUnit 4.7 through 4.10 has been removed. Please upgrade to JUnit 4.11 or higher.

Enhancements

  • CLI & Reports: Cover now provides a breakdown of manually written and Diffblue Cover written test coverage during dcover upload. [Ref: TG-21683]

  • Cover now writes tests which assert on the bytes inside InputStreams, InputStreamReaders and BufferedReaders. [Ref: TG-20804]

Resolved Issues

  • Resolved an issue which, in some circumstances, caused Cover to report F009 (Internal error) while writing tests for methods which contain Maps which have classes as values. [Ref: TG-21672]

  • Reports: Resolved an issue which, in some circumstances, caused Cover Reports to show Unexpected Application Error when loading the home page. [Ref: TG-21667]

  • Resolved an issue which caused Cover to report F009 (Internal Error) when writing tests for methods with names which are Java keywords. Cover now reports R088 (Method name is a reserved keyword). [Ref: TG-21642]

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]

  • 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