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-RelativeJUnitXmlhelper function added totestrunner.ps1 - Strips repo root from
testsuitenameandpackageattributes - Strips repo root from
testcaseclassnameandnameattributes - 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