Writing tests
Last updated
Last updated
To write tests using Cover Plugin for IntelliJ:
IntelliJ | Action |
---|---|
Editor Panel | Click the Write Tests gutter icon. |
Editor Panel | Right-click a method or class and select |
Editor Panel | Select |
Right-click a folder or file and select | |
Right-click a method or class and select | |
Select |
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.