Skip to content

Commit 0f510ad

Browse files
committed
Add PowerShell version verification in BeforeAll block for integration tests
1 parent c21796d commit 0f510ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Integration/Resources/DSCv3_DebugDscEngine.Integration.Tests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ BeforeAll {
3636
}
3737

3838
Describe "$($script:dscResourceFriendlyName)_Integration" -Tag @('Integration_SQL2017', 'Integration_SQL2019', 'Integration_SQL2022', 'Integration_PowerBI') {
39+
BeforeAll {
40+
# Output $PSVersionTable to verify the PowerShell version used in the test
41+
Write-Verbose -Message "PowerShell version: $($PSVersionTable.PSVersion)" -Verbose
42+
}
43+
3944
Context 'When getting the current state of the resource' {
4045
It 'Should return the expected current state with minimal properties' {
4146
$desiredParameters = @{

0 commit comments

Comments
 (0)