# Test Review

Test Review allows you to edit, analyse and manage each of the tests Diffblue Cover creates for you, as soon as those tests are available.

When enabled, you are given the opportunity to review and change the tests before they get added to your codebase.

## Beginning a review

To perform a review, simply write tests as normal. The number of tests available for review is shown in the tool panel. Once the first test is created the `Review Now` button will become active; clicking this will take you to the first test waiting to be reviewed.

<figure><img src="/files/9qLt3Lkop2OZrKmusbcz" alt="" width="563"><figcaption></figcaption></figure>

## Reviewing a test

To help you review your tests, we display them inside a [Diff Viewer](https://www.jetbrains.com/help/idea/comparing-file-versions.html). When comparing side-by-side, on the left you'll see your original test file (the file your tests will be inserted into). On the right, you'll see Diffblue Cover's test suggestion. This includes the test that has been created, as well as any other modifications to the test class required for the test to run.

You can use any of the features of the Diff Viewer to help you review your test, you can even edit the test inside the Diff Viewer if you wish.

<figure><img src="/files/9YthHzPbXvNV2XzoRIxn" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
You must accept any test that you wish to edit in the Diff Viewer. All changes made will be lost when you navigate away from the test.
{% endhint %}

### Accepting a test

Once you're happy with the test suggestion, you must accept it for the test to be added to your test file. If you have edited the test, these changes will be included when you accept.

<figure><img src="/files/EGCBGLLB9OmOrO264DwS" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="warning" %}
Any tests that are not accepted will be lost and can only be recreated by running Diffblue Cover again on the method under test. Please make sure you accept any test you want to keep.
{% endhint %}

### Accepting all tests

You might wish to inspect each test, and accept them all in one action. In which case, when you are happy with your tests, you can use the dropdown menu of the accept button and click "Accept all".

### Rejecting a test

If you do not wish to keep a test suggestion, for whatever reason, you can reject it. All tests can be rejected in one click using the "Reject all" option within the dropdown menu of the reject button.

{% hint style="warning" %}
Once a test is rejected, it is lost. Rejected tests can only be recreated by running Diffblue Cover again on the method under test.
{% endhint %}

## Navigating through tests

Once you have accepted or rejected a test, you will be automatically taken to the next test requiring your review.

However, If you wish to inspect multiple tests before taking an action, or you wish to review a specific test, you can navigate through the tests to find what you want. The tree on the left displays all methods under test. If a method has any test requiring review, it will display a ![](/files/48pmtufVvFATdR37M6uc) icon. Once all tests for the method have been reviewed, this icon will be replaced according to the status of the tests.

<figure><img src="/files/A4WXX6IYtT6KJ8TLkFk9" alt="" width="563"><figcaption></figcaption></figure>

There may be situations where Diffblue Cover creates multiple tests for a single method. In this case, a list of test methods will appear on the left. You can click through the items in this list to review the tests you're most interested in. This list can be resized or collapsed at any point while it is open.

<figure><img src="/files/0TywAjebUwbrZWNVEfv6" alt="" width="563"><figcaption></figcaption></figure>

Alternatively, you can navigate through these tests with the left/right arrow icons below the Diff Viewer.

<figure><img src="/files/gPdPlfenRQ1jZuoDYv0B" alt="" width="563"><figcaption></figcaption></figure>

## Enabling/Disabling Test Review

From Diffblue Cover IntelliJ Plugin 2025.03.01, Test Review is enabled by default - but it can be turned on or off at any time. When Test Review is disabled, tests will automatically be accepted and merged into your codebase.

To enable or disable Test Review, follow these steps:

1. Open the Diffblue Settings menu via `Diffblue` -> `Change Settings`
2. Find the section titled "Test Review".
3. Check or uncheck the `Test Review` checkbox.
4. Apply the settings.

<figure><img src="/files/dpLJpWOI236eZVJUMH5e" alt="" width="563"><figcaption></figcaption></figure>


---

# 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/features/cover-plugin/writing-tests/test-review.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.
