> For the complete documentation index, see [llms.txt](https://cover-docs.diffblue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cover-docs.diffblue.com/features/cover-plugin/writing-tests.md).

# Writing tests

To write tests using Cover Plugin for IntelliJ:

<table><thead><tr><th width="226">IntelliJ</th><th>Action</th></tr></thead><tbody><tr><td>Editor Panel</td><td>Click the <img src="/files/4lkNDIk55EL8087NS6kl" alt="" data-size="line"> <a href="/pages/H9LZtPMiJPWmU92BMWFN">Write Tests gutter icon</a>.</td></tr><tr><td>Editor Panel</td><td>Right-click a method or class and select <code>Write Tests</code>.</td></tr><tr><td>Editor Panel</td><td>Select <code>Diffblue</code> > <code>Write Tests</code> from the <a href="/pages/Dti3AM5yb7IYXls9Atm6#diffblue-menu-bar">IntelliJ menu</a>.</td></tr><tr><td><a href="/pages/Dti3AM5yb7IYXls9Atm6#project-tool-window">Project Tool Window</a></td><td>Right-click a folder or file and select <code>Write Tests</code>.</td></tr><tr><td><a href="/pages/Dti3AM5yb7IYXls9Atm6#structure-tool-window">Structure Tool Window</a></td><td>Right-click a method or class and select <code>Write Tests</code>.</td></tr><tr><td><a href="/pages/XL3e86vr9n1K2LCzMxNb">Run Configurations</a></td><td>Select <code>Run > Edit Configurations</code> from the IntelliJ menu.</td></tr></tbody></table>

{% hint style="info" %}
Once started, if you need to cancel the test writing process at any point, click the red **Stop** button in the [Cover Plugin tool window](/features/cover-plugin/writing-tests/diffblue-cover-tool-window.md).
{% endhint %}

In general, if the **Write Tests** option is available then Cover Plugin can write tests for your methods or classes. However:

* If it is not possible for Cover to write a complete test, instead a partial test may be created - see [Creating partial tests](/features/cover-plugin/writing-tests/partial-tests.md).
* If you don't want to write a complete test, Cover Plugin can help set up your tests by creating a skeleton test instead - see [Creating skeleton tests](/features/cover-plugin/writing-tests/skeleton-tests.md).
