You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(#259): update to Pester 6.0.0 and improve test assertions
- Added Get-NovaScaffoldModuleVersion function to retrieve module version.
- Updated Pester version requirements in project files and README.
- Refactored test assertions to use Should-Invoke for better clarity.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -298,8 +298,8 @@ Notes:
298
298
- if `project.json` sets `Pester.CodeCoverage.CoveragePercentTarget`, `Invoke-NovaTest` fails when the measured coverage percentage is lower than that configured target
299
299
- this repository currently enables coverage with a `99` percent target; the template and packaged example
300
300
`project.json` files ship the same JaCoCo configuration shape with `Enabled=false` and a `90` percent opt-in target
301
-
- make sure `Pester 5.7.1` is available before running `Invoke-NovaTest` or `Test-NovaBuild`
302
-
- the published `NovaModuleTools` manifest also declares `Pester 5.7.1`, so installed end-user workflows can still resolve that dependency automatically
301
+
- make sure `Pester 6.0.0` or newer is available before running `Invoke-NovaTest` or `Test-NovaBuild`
302
+
- the published `NovaModuleTools` manifest now declares `Pester 6.0.0`, so installed end-user workflows and repository validation align on the same supported dependency major version
303
303
304
304
### Create a package artifact
305
305
@@ -640,7 +640,7 @@ Responsibilities currently covered by the release pipeline include:
640
640
- publishing to PowerShell Gallery
641
641
- preparing the next prerelease version on `develop`
642
642
643
-
The workflow now uses `KeepAChangelog` for changelog release moves, creates annotated git tags named directly from the release version, and bootstraps the local PSResourceGet repository store before calling `Publish-NovaModule`. The shared CI installer also installs `Pester 5.7.1` explicitly before it installs prerelease gallery modules so test workflows do not rely on transitive manifest dependency resolution.
643
+
The workflow now uses `KeepAChangelog` for changelog release moves, creates annotated git tags named directly from the release version, and bootstraps the local PSResourceGet repository store before calling `Publish-NovaModule`. The shared CI installer also installs `Pester 6.0.0` explicitly before it installs prerelease gallery modules so test workflows do not rely on transitive manifest dependency resolution.
Copy file name to clipboardExpand all lines: src/private/quality/GetNovaTestWorkflowContext.ps1
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ function Assert-NovaPesterAvailable {
16
16
param()
17
17
18
18
if (-not (Get-Module-Name Pester -ListAvailable)) {
19
-
Stop-NovaOperation-Message 'The module Pester must be installed to run Nova tests. Install Pester 5.7.1 and try again.'-ErrorId 'Nova.Dependency.PesterDependencyMissing'-Category ResourceUnavailable -TargetObject 'Pester'
19
+
Stop-NovaOperation-Message 'The module Pester must be installed to run Nova tests. Install Pester 6.0.0 or newer and try again.'-ErrorId 'Nova.Dependency.PesterDependencyMissing'-Category ResourceUnavailable -TargetObject 'Pester'
0 commit comments