Skip to content

Improve tests for Build-CMakeBuild and Configure-CMakeBuild#70

Merged
MarkSchofield merged 2 commits intodevelopfrom
mschofie/improve-tests
Oct 6, 2025
Merged

Improve tests for Build-CMakeBuild and Configure-CMakeBuild#70
MarkSchofield merged 2 commits intodevelopfrom
mschofie/improve-tests

Conversation

@MarkSchofield
Copy link
Owner

This PR adds more test coverage for Build-CMakeBuild and Configure-CMakeBuild. This did uncover a regression between #63 and #67 - specifying an invalid preset or configuration is no longer an error. When a Preset is passed, all CMakePreset.json presets that match it are chosen. So if nothing matches then no presets are added, and nothing is run. If nothing matches, we now include the originally provided value to either:

  1. use that preset incase it was an invalid wildcard (that '-Preset' values should be checked for equality before wildcard match #67 attempted to fix),
  2. cause CMake to consume the preset, and fail as appropriate.

@MarkSchofield MarkSchofield merged commit 0bd46d9 into develop Oct 6, 2025
1 check passed
@MarkSchofield MarkSchofield deleted the mschofie/improve-tests branch October 6, 2025 01:14
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.

1 participant