Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.27 KB

File metadata and controls

23 lines (18 loc) · 1.27 KB

← Back to Backlog

[CI-002] ✅ DONE - Normalize JUnit XML paths for Codecov Test Analytics

Status: Done (2026-02-21) Priority: Low Component: test/bin/testrunner.ps1, test/bin/testrunner.Tests.ps1 (new)

Description: Codecov's test-results-parser cannot properly process Pester's JUnit XML output because Pester embeds absolute Windows paths (with backslashes and drive letters) into testsuite name/package, testcase classname, and testcase name attributes. Added ConvertTo-RelativeJUnitXml helper to post-process the JUnit XML after Pester generates it, stripping the repo root prefix and converting backslashes to forward slashes.

Acceptance Criteria:

  • ConvertTo-RelativeJUnitXml helper function added to testrunner.ps1
  • Strips repo root from testsuite name and package attributes
  • Strips repo root from testcase classname and name attributes
  • Converts backslashes to forward slashes in all normalized attributes
  • Preserves non-path content in attributes (e.g., .Shall not have deviations)
  • Handles trailing backslash on repo root (with and without)
  • File is saved as valid XML
  • Unit tests in testrunner.Tests.ps1
  • All existing tests continue to pass

← Back to Backlog