The format ps1xml file is not valid and causing some internal state that causes PowerShellGet tests to fail as it can't find a cmdlet that should be available. Needs to be investigated.
Steps to reproduce
$xmlContent = @"
<Configuration>
<ViewDefinitions>
<View>
<Name>T2</Name>
</View>
</ViewDefinitions>
</Configuration>
"@
$xmlContent | Out-File -FilePath ".\test.format.ps1xml" -Encoding ascii
Update-FormatData -Path ".\test.format.ps1xml" "FormatXmlUpdateException,Microsoft.PowerShell.Commands.UpdateFormatDataCommand"
Start-PSPester -Terse
Expected behavior
Tests to pass
Actual behavior
Describing PowerShellGet - Module tests
[-] Error occurred in Describe block 424ms
The 'Get-PSRepository' command was found in the module 'PowerShellGet', but the module could not be loaded. For more information, run 'Import-Module PowerShellGet'.
At /Users/steve/repos/PowerShell/test/powershell/Modules/PowerShellGet/PowerShellGet.Tests.ps1:76 char:13
Environment data
Name Value
---- -----
PSVersion 6.0.0-beta.8
PSEdition Core
GitCommitId v6.0.0-beta.8-38-g6121d891d98cf4f813ac013ef8faa1bc8e68296d
OS Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
The format ps1xml file is not valid and causing some internal state that causes PowerShellGet tests to fail as it can't find a cmdlet that should be available. Needs to be investigated.
Steps to reproduce
Expected behavior
Tests to pass
Actual behavior
Environment data