Issue
I have written some Test methods using Junit and mockito. My tests run fine. However, I am not able to see code coverage.
src="https://i.stack.imgur.com/gakAQ.png" alt="enter image description here">
No matter which option I click on, nothing is shown in code coverage.
I clicked on EDIT to fix configuration seetings
displayed in middle of code coverage window on right. This is what I get :
What should I do to get code coverage results ?
This is my folder structure :
Solution
To see coverage for production code change the pattern to com.cdk.dmg.asset
.
You need to Enable coverage in test folders if you want see coverage in tests (this option is disabled on your screenshot and the pattern is set to record data for tests only, hence no results).
Answered By - CrazyCoder
Answer Checked By - Cary Denson (JavaFixing Admin)