Lack of code coverage in IntelliJ 2017

I've written several test methods using Junit and mockito. My tests are running fine. However, I cannot see the code coverage.

enter image description here

No matter which option I click, nothing appears in the code coverage. I clicked on the EDIT to fix configuration seetings

one displayed in the middle of the code coverage window on the right. This is what I get:

enter image description here

enter image description here

What should I do to get code coverage results?

This is my folder structure:

enter image description here

+3


source to share


1 answer


To see production code coverage, change the template to com.cdk.dmg.asset

.



You need to Enable coverage in test folders if you want to see coverage in tests (this option is disabled in the screenshot and the template is set to record data for tests only, hence no results).

+3


source







All Articles