Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is code coverage window in my IntelliJ?

Where can I find Coverage Tool Window in IntelliJ IDEA Ultimate 11.02? In tutorial they say it is in View | Tool Windows | Coverage. But in my IDEA it isn't, see picture:

Missing coverage window

I have coverage plugin enabled.

like image 676
Xorty Avatar asked May 16 '12 22:05

Xorty


People also ask

Why code coverage is not showing in IntelliJ?

From the main menu, select Run | Show Coverage Data ( Ctrl+Alt+F6 ). In the Choose Coverage Suite to Display dialog, select the checkboxes next to the necessary suites, and click Show selected. IntelliJ IDEA opens the coverage results for the selected test suites.

How do you show code coverage?

To calculate the code coverage percentage, simply use the following formula: Code Coverage Percentage = (Number of lines of code executed by a testing algorithm/Total number of lines of code in a system component) * 100.

How do I highlight code coverage in IntelliJ?

To enable code coverage highlighting In the IDEA IDE, on the Analyze menu, click Show Code Coverage Data, or use the Ctrl+Alt+F6 keyboard shortcut.


1 Answers

You need to click on the Run with Coverage button in the toolbar, after tests complete, Coverage panel will appear showing the results of the run.

like image 120
CrazyCoder Avatar answered Oct 23 '22 03:10

CrazyCoder