Writing tests

To write tests using Cover Plugin for IntelliJ:

IntelliJ
Action

Editor Panel

Editor Panel

Right-click a method or class and select Write Tests.

Editor Panel

Select Diffblue > Write Tests from the IntelliJ menu.

Right-click a folder or file and select Write Tests.

Right-click a method or class and select Write Tests.

Select Run > Edit Configurations from the IntelliJ menu.

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.

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.

  • 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.

Last updated

Was this helpful?