Coverage view shows 0.0% in Intellij when using Jacoco Coverage view shows 0.0% in Intellij when using Jacoco java java

Coverage view shows 0.0% in Intellij when using Jacoco


When you add the class to PowerMockito annotation @PrepareForTest for the test classes, the corresponding class will not be showing the code coverage.


I may guess you are trying to see test coverage in same way as it is show by the TeamCity(jaCoCo).If Yes there are simple workaround how to check all missed branches(just general statistic which branches was visited and how many times) :

enter image description here

enter image description here

That's all my advices , folks


Buid source code through IntelliJ before importing jacoco.exec might be solved this showing 0% coverage problem.