Cover Plugin tool window
Last updated
Was this helpful?
Last updated
Was this helpful?
When writing tests, the Cover Plugin tool window is displayed. The Overview panel provides summary progress and status information for each stage when writing tests - click an item to review detailed status and results in the Details panel, including preflight and environment check results, a Diff Viewer for reviewing tests written, test links, output codes, and general information.
During this stage, Cover Plugin runs initial checks to ensure it can write tests. If there are any issues, the Overview panel will tell you which check failed, along with an explaination to help you resolve it. Example issues may include problems with licensing or compiling the project.
Next, Cover Plugin will check your project's environment, to make sure it is set up correctly. This checks your project and its dependencies against Diffblue specifications and requirements. If Cover Plugin detects something outside of these requirements you may see warnings or errors in the Details panel - these can be expanded to display more information to help you resolve the issue and some may have automatic fixes (see Fix issues below).
Certain errors and warnings reported during the Checking environment stage may have automated fixes available - click the Fix Issue button in the Details panel and Cover will attempt to automatically apply the fix to your project.
Finally, Cover Plugin will write your tests. The Overview panel displays the progress for each method (grouped by class) - select an item to review created tests, as well as to view details such as test links and general information for your tests once they have been reviewed.
If you need to cancel test creation at any point, click the red Stop button.
When you click Stop, any remaining methods will be marked as cancelled and tests will not be created for them. Any tests that have already been written will be retained for review and can be merged into your codebase once accepted.
Note that cancelling test creation may not happen immediately. Cover will attempt to stop gracefully, so you may have to wait for its current progress to complete before the process is halted.
Once test generation has finished, you can click on the restart button to rerun the test generation process.
When you click Restart, the tool window will be cleared and Cover will attempt to write tests on the exact same configuration of methods or classes.
Please see accessing logs for more information.
If you need to raise a support request, click the Open support request button (not available for all users, please see Cover Editions for more details).