Writing tests
Last updated
Last updated
To write tests using Cover Plugin for IntelliJ:
Editor Panel
Click the .
Editor Panel
Right-click a method or class and select Write Tests
.
Editor Panel
Select Diffblue
> Write Tests
from the .
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:
Cover is not always able to write a complete test, instead it might create a partial test - 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.