aconrad / pycobertura

A code coverage diff tool for Cobertura reports
MIT License
116 stars 39 forks source link

Coverage diff HTML report shows code source on unlisted items #184

Closed nbauma109 closed 6 months ago

nbauma109 commented 6 months ago

On top of the report, several items are showing, on modified files, and unchanged files for which coverage has changed (indirect coverage, that's ok).

However, the code source that is displayed below is partly unrelated to the list of items above. Apparently, the issue appears only on generated sources. I still try to think why this is the case but no idea so far.

nbauma109 commented 6 months ago

For example, if I take the image on your readme, you have :

And in my case, the code snippet of generated/dummy4 is showing, but not expected as not from the above list.

nbauma109 commented 6 months ago

I converted all line endings to unix and I don't have the issue anymore.