Skip to content

fix: support Windows paths in CTRF report globs - #350

Merged
Ma11hewThomas merged 2 commits into
ctrf-io:mainfrom
Doffin-azure:fix/windows-report-path-glob-squashed
Nov 28, 2026
Merged

Ma11hewThomas merged 2 commits into
ctrf-io:mainfrom
Doffin-azure:fix/windows-report-path-glob-squashed

Conversation

@Doffin-azure

Copy link
Copy Markdown
Contributor

Summary

Updates report-path glob matching on Windows to accept backslashes as path separators.

Changes

  • src/ctrf/core/src/methods/read-reports.ts: use Node.js's win32 platform identifier to detect Windows and enable windowsPathsNoEscape on that platform.
  • __tests__/ctrf/read-reports.test.ts: cover forward-slash globs and relative and absolute Windows globs with backslashes.
  • dist/index.js, dist/index.js.map: rebuilt via npm run package.

Testing

  • npm run build:check, npm run lint:check, npm run test (352 passed, 2 skipped on Linux), npm run test -- __tests__/ctrf/read-reports.test.ts (3 passed on Windows).

Closes #181

@Ma11hewThomas

Copy link
Copy Markdown
Contributor

Thanks! This looks good!

Apologies, I merged another PR before, could you update your branch from main and rerun npm run package to rebuild the dist files?

@Doffin-azure

Copy link
Copy Markdown
Contributor Author

Thanks! This looks good!

Apologies, I merged another PR before, could you update your branch from main and rerun npm run package to rebuild the dist files?

Thanks for taking a look! I merged the latest main into the branch. The PR is ready for another look.

@Ma11hewThomas
Ma11hewThomas merged commit b357613 into ctrf-io:main Nov 28, 2026
23 checks passed
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.

Feat: Support Windows agents

2 participants