diff --git a/tests/GitDsc/GitDsc.tests.ps1 b/tests/GitDsc/GitDsc.tests.ps1 index 25d4ecdb..47ac335c 100644 --- a/tests/GitDsc/GitDsc.tests.ps1 +++ b/tests/GitDsc/GitDsc.tests.ps1 @@ -9,7 +9,7 @@ Set-StrictMode -Version Latest #> BeforeAll { - if ((Get-Module -Name PSDesiredStateConfiguration -ListAvailable).Version -ne '2.0.7') { + if ($null -eq (Get-Module -Name PSDesiredStateConfiguration -ListAvailable | Where-Object Version -eq '2.0.7')) { Write-Verbose -Message 'Installing PSDesiredStateConfiguration module.' -Verbose Install-Module -Name PSDesiredStateConfiguration -Force -SkipPublisherCheck -RequiredVersion '2.0.7' } diff --git a/tests/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.Tests.ps1 b/tests/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.Tests.ps1 index 4b60c6c8..ddbb117a 100644 --- a/tests/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.Tests.ps1 +++ b/tests/Microsoft.DotNet.Dsc/Microsoft.DotNet.Dsc.Tests.ps1 @@ -11,7 +11,10 @@ Set-StrictMode -Version Latest #> BeforeAll { - Install-Module -Name PSDesiredStateConfiguration -Force -SkipPublisherCheck + if ($null -eq (Get-Module -Name PSDesiredStateConfiguration -ListAvailable)) { + Install-Module -Name PSDesiredStateConfiguration -Force -SkipPublisherCheck + } + Import-Module Microsoft.DotNet.Dsc $script:toolsDir = Join-Path $env:USERPROFILE 'tools' diff --git a/tests/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.Tests.ps1 b/tests/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.Tests.ps1 index de603e24..75ffbbdd 100644 --- a/tests/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.Tests.ps1 +++ b/tests/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.Tests.ps1 @@ -11,7 +11,7 @@ Set-StrictMode -Version Latest #> BeforeAll { - if ((Get-Module -Name PSDesiredStateConfiguration -ListAvailable).Version -ne '2.0.7') { + if ($null -eq (Get-Module -Name PSDesiredStateConfiguration -ListAvailable | Where-Object Version -eq '2.0.7')) { Write-Verbose -Message 'Installing PSDesiredStateConfiguration module.' -Verbose Install-Module -Name PSDesiredStateConfiguration -Force -SkipPublisherCheck -RequiredVersion '2.0.7' } diff --git a/tests/Microsoft.Windows.Developer/Microsoft.Windows.Developer.Tests.ps1 b/tests/Microsoft.Windows.Developer/Microsoft.Windows.Developer.Tests.ps1 index 68dd4383..6226000f 100644 --- a/tests/Microsoft.Windows.Developer/Microsoft.Windows.Developer.Tests.ps1 +++ b/tests/Microsoft.Windows.Developer/Microsoft.Windows.Developer.Tests.ps1 @@ -12,7 +12,10 @@ Set-StrictMode -Version Latest # InModuleScope ensures that all mocks are on the Microsoft.Windows.Developer module. InModuleScope Microsoft.Windows.Developer { BeforeAll { - Install-Module -Name PSDesiredStateConfiguration -Force -SkipPublisherCheck + if ($null -eq (Get-Module -Name PSDesiredStateConfiguration -ListAvailable)) { + Install-Module -Name PSDesiredStateConfiguration -Force -SkipPublisherCheck + } + Import-Module Microsoft.Windows.Developer # Create test registry path. diff --git a/tests/testResults.xml b/tests/testResults.xml new file mode 100644 index 00000000..356983ef --- /dev/null +++ b/tests/testResults.xml @@ -0,0 +1,1075 @@ + + + + + + + + + + + + + CommandNotFoundException: The term 'Get-DscResource' is not recognized as a name of a cmdlet, function, script file, or executable program. +Check the spelling of the name, or if a path was included, verify that the path is correct and try again. + at <ScriptBlock>, /home/runner/work/winget-dsc/winget-dsc/tests/GitDsc/GitDsc.tests.ps1:24 + + + + + + + + + CommandNotFoundException: The term 'Invoke-DscResource' is not recognized as a name of a cmdlet, function, script file, or executable program. +Check the spelling of the name, or if a path was included, verify that the path is correct and try again. + at <ScriptBlock>, /home/runner/work/winget-dsc/winget-dsc/tests/GitDsc/GitDsc.tests.ps1:37 + + + + + CommandNotFoundException: The term 'Invoke-DscResource' is not recognized as a name of a cmdlet, function, script file, or executable program. +Check the spelling of the name, or if a path was included, verify that the path is correct and try again. + at <ScriptBlock>, /home/runner/work/winget-dsc/winget-dsc/tests/GitDsc/GitDsc.tests.ps1:52 + + + + + CommandNotFoundException: The term 'Invoke-DscResource' is not recognized as a name of a cmdlet, function, script file, or executable program. +Check the spelling of the name, or if a path was included, verify that the path is correct and try again. + at <ScriptBlock>, /home/runner/work/winget-dsc/winget-dsc/tests/GitDsc/GitDsc.tests.ps1:68 + + + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + This test should run but it did not. Most likely a setup in some parent block failed. + + + + + + + + + + + + + + + + CommandNotFoundException: The term 'Get-DscResource' is not recognized as a name of a cmdlet, function, script file, or executable program. +Check the spelling of the name, or if a path was included, verify that the path is correct and try again. + at <ScriptBlock>, /home/runner/work/winget-dsc/winget-dsc/tests/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.Tests.ps1:35 + + + + + + + + + + + SocketException: Resource temporarily unavailable +HttpRequestException: Resource temporarily unavailable (marketplace.visualstudio.com:443) + at <ScriptBlock>, /home/runner/work/winget-dsc/winget-dsc/tests/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.Tests.ps1:79 + + + + + CommandNotFoundException: The term 'Invoke-DscResource' is not recognized as a name of a cmdlet, function, script file, or executable program. +Check the spelling of the name, or if a path was included, verify that the path is correct and try again. + at <ScriptBlock>, /home/runner/work/winget-dsc/winget-dsc/tests/Microsoft.VSCode.Dsc/Microsoft.VSCode.Dsc.Tests.ps1:100 + + + + + + + + + + + + + + + \ No newline at end of file