Skip to content

Commit

Permalink
Merge pull request #111 from kingchad1989/issue-99
Browse files Browse the repository at this point in the history
Fixed an issue where jacoco coverage information was not matching source information on windows
  • Loading branch information
Bachmann1234 committed Jun 4, 2019
2 parents d7793f1 + 28933e0 commit 4953262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff_cover/violationsreporters/violations_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _get_src_path_line_nodes_clover(self, xml_document, src_path):
def _measured_source_path_matches(self, package_name, file_name, src_path):
# find src_path in any of the source roots
for root in self._src_roots:
if GitPathTool.relative_path(os.path.join(root, package_name, file_name)) == src_path:
if os.path.normcase(GitPathTool.relative_path(os.path.join(root, package_name, file_name))) == os.path.normcase(src_path):
return True

def _get_src_path_line_nodes_jacoco(self, xml_document, src_path):
Expand Down

0 comments on commit 4953262

Please sign in to comment.