Skip to content

feat: Add Pester tests for label parsing, bump selection, and prerelease sequencing#3

Closed
Marius Storhaug (MariusStorhaug) wants to merge 5 commits into
mainfrom
feat/add-pester-tests
Closed

feat: Add Pester tests for label parsing, bump selection, and prerelease sequencing#3
Marius Storhaug (MariusStorhaug) wants to merge 5 commits into
mainfrom
feat/add-pester-tests

Conversation

@MariusStorhaug
Copy link
Copy Markdown
Member

Related issue Fixes PSModule/Process-PSModule#326 (sub-task: Add Pester tests)

Summary

Adds unit tests for the core version-resolution logic in Helpers.psm1:

  • Label parsing (Resolve-ReleaseDecision): major/minor/patch label recognition, priority rules, ignore labels, AutoPatching, ReleaseType behavior, branch name sanitization.
  • Bump selection (Get-NextModuleVersion): major/minor/patch version increments, version prefix application, prerelease suffix construction.
  • Prerelease sequencing (Get-NextPrereleaseNumber): incremental numbering from PSGallery and GitHub releases, zero-padding, filtering by base version and branch name.

35 tests, all passing locally.

…ase sequencing

Cover Resolve-ReleaseDecision (label parsing and bump selection),
Get-NextModuleVersion (version increments and prerelease suffix), and
Get-NextPrereleaseNumber (incremental sequencing and zero-padding).
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.

Move version calculation to a Plan job (Resolve-PSModuleVersion) so Build and Publish never calculate or mutate versions

1 participant