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-003] ✅ DONE - Normalize JaCoCo XML paths for Codecov coverage

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

Description: Codecov could not display line-by-line coverage because Pester's JaCoCo XML embeds a common-parent-leaf prefix (e.g., shortcuts/) in package names and full relative paths in sourcefile names. Codecov constructs paths as <package>/<sourcefile>, producing doubled paths like shortcuts/bin/bin/install.ps1. Added ConvertTo-RelativeJaCoCoXml to strip the prefix and reduce sourcefile names to bare filenames. Also added Import-XmlWithoutDtd helper to handle JaCoCo's DOCTYPE declaration under strict mode.

Acceptance Criteria:

  • ConvertTo-RelativeJaCoCoXml helper function added to testrunner.ps1
  • Strips common-parent-leaf prefix from package name attributes
  • Strips common-parent-leaf prefix from class name attributes
  • Reduces sourcefile name to bare filename
  • Reduces class sourcefilename to bare filename
  • Handles single and multiple packages
  • File is saved as valid XML
  • Unit tests in testrunner.Tests.ps1
  • All existing tests continue to pass

← Back to Backlog