Code coverage in IntelliJ IDEA allows you to see the extent to which your code has been executed. It also lets you verify the extent to which your code is covered by unit tests, so that you can estimate how effective these tests are.
note
Code coverage is supported only for the classes and sources that belong to your current project.
The following code coverage runners are available in IntelliJ IDEA:
EMMA is an open-source toolkit. Note that EMMA is not supported by the author any more, and works with Java 7 only when frame validation is turned off (pass -noverify to the process).