Skip to content

Add CustomModule integration-test coverage for non-git-only Features combinations #563

@raandree

Description

@raandree

Problem description
PR #560 fixed several real bugs in Sampler/Templates/Sampler/plasterManifest.xml:

  • Broken Features choice values (azurepipelines, vscode, github, codecov).
  • Contradictory Features.Count prompt conditions for UseGit, UseGitVersion, UseCodeCovIo, UseGitHub, UseAzurePipelines, UseVSCode, License, LicenseType.
  • GitHubOwner condition using -contains against an integer.
  • azure-pipelines.yml gated on the non-existent Azure-Pipelines feature value.

The only CustomModule integration test still scaffolds with Features = 'git', so none of the fixed paths are exercised end-to-end.

Verbose logs
N/A

How to reproduce

  1. Inspect tests/Integration/PlasterTemplates/Sampler/CustomModulePlasterTemplate.Integration.Tests.ps1.
  2. Observe that every Context uses Features = 'git'.
  3. Reintroduce any of the PR-CustomModule fixes and Copilot repo guidance #560 template bugs locally and confirm the integration test still passes.

Expected behavior
Integration test coverage exists for at least the combinations fixed in #560, e.g.:

  • Features = 'azurepipelines','github','codecov','vscode','UnitTests','ModuleQuality','Build'
  • Features = 'All'

with assertions that azure-pipelines.yml, .github/*, codecov.yml, .vscode/, and GitVersion.yml (when gitversion is selected) appear in the generated tree.

Current behavior
Only a git-only scaffold is validated end-to-end.

Suggested solution

  • Add one or more Context blocks to CustomModulePlasterTemplate.Integration.Tests.ps1 covering the combinations above.
  • Confirm that the 'output' and 'output/RequiredModules' folders added to the expected-folders list in CustomModule fixes and Copilot repo guidance #560 are actually produced by the template from a clean $TestDrive and are not leaking from a prior ./build.ps1 run.

Operating system the target node is running
N/A

PowerShell version and build the target node is running
N/A

Module version used
Sampler Unreleased / post-#560.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions