# 2024-07-03

This release further improves the quality of assertions in unit tests written by Cover, adds support for writing tests for Java 22 projects and relaxes the character restrictions on the CLI's `--location` and `--project-name` options when uploading to Cover Reports. Full details of these updates can be found in the release notes.

## Enhancements

* Cover now writes tests with more robust assertions for `File` and `Path` objects by not relying on environment-dependent assertions. \[Ref: TG-21590]
* Cover now more effectively selects optimal assertions when writing tests for getters and setters. \[Ref: TG-21589]
* CLI & Reports: Cover's `--location` and `--project-name` options now accept all characters except `\`, `/`, `;`, and `%`, which will be automatically removed during upload if present. \[Ref: TG-21418]
* Plugin: Cover now provides a button, in the Diffblue Cover tool window, to easily open user logs, support logs and the log folder. \[Ref: TG-21248]
* Cover now supports writing tests for Java 22 projects. \[Ref: TG-21140]
* Cover now writes tests which provide an input to `SimpleDateFormat`, resulting in more consistent and portable date formatting. \[Ref: TG-20800]
* Cover now instantiates `CharSequence`, `StringBuffer`, `StringBuilder`, and `ByteBuffer` objects using a `String` where applicable, resulting in stronger assertions and improved line coverage when writing tests for some methods. \[Ref: TG-20796]
* Cover now writes tests which use existing implementations of `BiFunction` and `BiPredicate` functional interfaces when appropriate. \[Ref: TG-20686]

## Resolved Issues

* Resolved an issue which caused Cover to report a custom validation command failure when running `dcover validate` within an IntelliJ IDEA terminal. \[Ref: TG-21522]
* Plugin: Resolved an issue where, in certain circumstances, writing Java tests for Kotlin code caused Cover to create non-compiling tests. \[Ref: TG-20759]

## 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]
* In rare circumstances Cover may encounter an `F009: Internal error` while writing tests using Mockito 5. To avoid this issue use a version of Mockito earlier than 5. \[Ref: TG-19610]


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cover-docs-preview.diffblue.com/updates-and-upgrades/release-archive/2024-07-03.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
