Skip to content

Comments

Bugfix: Correct file name matching on Windows#553

Merged
Bachmann1234 merged 1 commit intoBachmann1234:mainfrom
amos-chen:windows-bugfix-lowercase
Nov 11, 2025
Merged

Bugfix: Correct file name matching on Windows#553
Bachmann1234 merged 1 commit intoBachmann1234:mainfrom
amos-chen:windows-bugfix-lowercase

Conversation

@amos-chen
Copy link
Contributor

This PR fixes file matching on Windows where src_path is lowercased by os.path.normcase(), but file_name (from the JaCoCo XML) retains its original casing. This mismatch caused the src_path.endswith(file_name) check to fail and report no coverage.

@Bachmann1234
Copy link
Owner

Change looks reasonable to me. Ill have to find some time this week to fix the CI build.

@amos-chen amos-chen changed the title Bugfix: Correct path separator mismatch for file matching on Windows Bugfix: Correct file name matching on Windows Nov 11, 2025
@amos-chen
Copy link
Contributor Author

@Bachmann1234 Thanks for the review!

@Bachmann1234
Copy link
Owner

Alrighty, lets merge this!

@Bachmann1234 Bachmann1234 merged commit cdd1f36 into Bachmann1234:main Nov 11, 2025
18 of 38 checks passed
@Bachmann1234
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants