Cobertura shows the wrong line coverage

I see a strange report about cobertur. It says line number is 89 (see screenshot)

siteMapItems = getItemFromPage (navParentPage, 0);

executed once, but the method called on this line (getItemFromPage) does not show the coverage of the line. I also added the logs to the method, and I also see the logs that are printed during the unit test event.

What could be the reason for this strange report? That doesn't make sense to me.

enter image description here

+5
source share
1 answer

Sometimes such desynchronization problems arise due to the mismatch between java files and class files. Check if cobertura is checking the correct class file.

0
source

Source: https://habr.com/ru/post/1275458/


All Articles