Closed andrewwillett closed 3 years ago
Modified the three test files to enable compatibility with Pester 5.
Help.tests.ps1
BeforeDiscovery { }
$params
foreach
-ForEach $commands
$links
$link
BeforeAll { }
< >
Manifest.tests.ps1
$script:changelogVersion = $null
Meta.tests.ps1
https://github.com/devblackops/Stucco/issues/18
Project did not build/pass test with Pester 5 due to breaking changes.
Thanks @andrewwillett!
This PR and #20 both update the Pester tests for v5. I'm going to merge this one first, then manually incorporate some of the differences from #20.
Modified the three test files to enable compatibility with Pester 5.
Description
Help.tests.ps1
BeforeDiscovery { }
block (including new$params
logic which is unreleased to PSGallery).foreach
and changed to data-driven tests, i.e. Describe-ForEach $commands
$links
variable initialisation typo (was$link
) line 57BeforeDiscovery { }
andBeforeAll { }
as it is used in both Discovery and Test phases< >
templatesManifest.tests.ps1
BeforeAll { }
$script:changelogVersion = $null
Meta.tests.ps1
BeforeAll { }
Related Issue
https://github.com/devblackops/Stucco/issues/18
Motivation and Context
Project did not build/pass test with Pester 5 due to breaking changes.
How Has This Been Tested?
Checklist: