Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij idea community edition - code coverage?

Looking at comparison matrix it looks like IDEA CE does not support code coverage at all. Bu there are lots of code coverage tools available, so perhaps it's possible to incorporate something into IDEA CE?

like image 332
jdevelop Avatar asked Nov 18 '11 12:11

jdevelop


People also ask

How do I get code coverage in IntelliJ?

Coverage in the Coverage tool window If you want to reopen the Coverage tool window, select Run | Show Code Coverage Data from the main menu, or press Ctrl+Alt+F6 . The report shows the percentage of the code that has been executed or covered by tests. You can see the coverage result for classes, methods, and lines.

Why code coverage is not showing in IntelliJ?

If the plugin is disabled, the code coverage tabs will not be visible in the run/debug configuration dialogs. Try opening Settings > Build, Execution, Deployment > Coverage and check the "Activate Coverage View" checkbox. After that run another test with Coverage.

How do I turn off IntelliJ coverage?

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

How do I enable branch coverage in IntelliJ?

In IntelliJ to add "branch coverage" to the coverage window, you can go to Run/EditConfiguration then proceed to Modify options/coverage setting and enable use tracing.


1 Answers

Information for people visiting this question in 2014+.

Starting with Idea 14 (currently available only in Early Access Program released in November 2014) that feature is also available in a Community Edition.

We think you’ll also appreciate the fact that Code Coverage tool, Structural Search and Replace, and Type Migration refactoring have become available in IntelliJ IDEA Community Edition.

like image 138
Marcin Zajączkowski Avatar answered Sep 18 '22 19:09

Marcin Zajączkowski