Skip to content

Prepare 5.0 release - #296

Merged
gdbarron merged 1 commit into
masterfrom
release/5.0.0-prep
Jul 19, 2026
Merged

Prepare 5.0 release#296
gdbarron merged 1 commit into
masterfrom
release/5.0.0-prep

Conversation

@gdbarron

Copy link
Copy Markdown
Collaborator

Summary

Release-prep work for the next release (5.0), covering test coverage, a couple of real bug fixes found along the way, CI improvements, and updated release notes.

Testing

  • Added Pester unit tests for all previously-untested public functions.
  • Fixed Unit.GenericModule.Tests.ps1 - it had two Pester v5 Discovery/Run-phase scoping bugs that caused manifest property checks to silently fail/under-test (only 2 of 20 exported functions were actually being verified). All 20 functions are now genuinely covered.
  • Enabled Pester in CI (ci.yml) - it was previously commented out and pointed at a stale test path. Now runs the modern per-function test suite, excluding legacy tests that require live credentials and can't run non-interactively.
  • Added Tests/Invoke-ServiceNowLiveSmokeTest.ps1, a manually-run script that exercises all 20 public functions against a real ServiceNow instance, with self-cleanup. Validated end-to-end (20/20 pass) against a live dev instance.

Bug fixes found via testing

  • New-ServiceNowChangeTask: fixed AssignedTo/assigned_to field name mismatch.
  • New-ServiceNowCartItem: fixed mandatory-variable detection to handle instances that return the mandatory flag as a display-value-style object instead of a plain boolean/string.

Release notes

Notes

  • ModuleVersion in the manifest is left as-is (5.0); the CD workflow auto-increments the patch/build number on publish.
  • CHANGELOG.md is intentionally untouched - the CD automation merges RELEASE.md into it.

… test

- Add Pester unit tests for all previously-untested public functions
- Fix New-ServiceNowChangeTask assigned_to/AssignedTo bug
- Fix New-ServiceNowCartItem mandatory-variable detection for display-value style
  objects returned by some instances
- Fix Unit.GenericModule.Tests.ps1 Pester Discovery/Run scoping bugs (BeforeAll,
  -ForEach instead of hand-rolled foreach, and full FunctionsToExport parsing via
  Import-PowerShellDataFile instead of fragile line-based regex)
- Add Tests/Invoke-ServiceNowLiveSmokeTest.ps1 for manual validation against a live
  instance, covering all 20 public functions; validated against dev409606
- Enable Pester in CI (ci.yml), excluding legacy tests that require live credentials
- Update RELEASE.md with all changes since v4.1.0 and contributor credits
@gdbarron
gdbarron merged commit 439d351 into master Jul 19, 2026
1 check passed
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