Skip to content

Fix CTest Test Explorer preset environment propagation - #5019

Merged
MacGyver Codilla (mcodilla) merged 3 commits into
microsoft:mainfrom
Klusting:codex/fix-4313-ctest-preset-environment
Sep 1, 2026
Merged

MacGyver Codilla (mcodilla) merged 3 commits into
microsoft:mainfrom
Klusting:codex/fix-4313-ctest-preset-environment

Conversation

@Klusting

@Klusting Klusting commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

CTest execution already applies the selected test preset environment, but CTest discovery for the Test Explorer did not. This caused environment-dependent test discovery to fail or produce incomplete results.

  • Pass the selected test preset environment to CTest discovery commands.
  • Add a regression test covering discovery environment propagation.
  • Document the fix in the 1.24 changelog.

Testing

  • TypeScript compilation
  • Lint
  • CTest unit tests: 17 passing
  • Single-root CTest E2E tests: 12 passing
  • Production build and VSIX packaging

Fixes #4313

@Klusting

Klusting commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! Looks good, we'll be taking this in.

@mcodilla
MacGyver Codilla (mcodilla) merged commit 38ee23d into microsoft:main Sep 1, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants