Migrates to Pester5+ tests #59

Merged
OCram85 merged 47 commits from Pester5 into master 2022-07-14 13:37:13 +02:00
Showing only changes of commit e9529bd281 - Show all commits

View File

@ -1,6 +1,14 @@
BeforeAll { BeforeAll {
$ManifestFile = (Get-Item -Path "./src/*.psd1").FullName $ManifestFile = (Get-Item -Path "./src/*.psd1").FullName
Import-Module $ManifestFile -Force Import-Module $ManifestFile -Force
$PrivateFunctions = (Get-ChildItem -Path "./src/Private/*.ps1" | Where-Object {
$_.BaseName -notmatch '.Tests'
}
).FullName
foreach ( $func in $PrivateFunctions) {
. $func
}
} }
Describe "New-CSCertificate" { Describe "New-CSCertificate" {