-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Where are you running it?
Azure DevOps Service (VSTS)
Version of Extension/Task
10.1.23
Expected behaviour and actual behaviour
Actual behaviour
When the tests are using the TestDrive, all test failed due to an error in the temp registry initialization
System.Exception: Was not able to create a Pester Registry key for TestRegistry
System.Management.Automation.ValidationMetadataException: The " $_ | Test-Path -PathType Leaf " validation script for
the argument with value "Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Pester" did not return a
result of True. Determine why the validation script failed, and then try the command again.
at System.Management.Automation.ValidateScriptAttribute.ValidateElement(Object element)
at System.Management.Automation.ValidateEnumeratedArgumentsAttribute.Validate(Object arguments, EngineIntrinsics
engineIntrinsics)
at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter,
CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)
At C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules\Pester\5.0.2\Pester.psm1:7827 char:13
+ throw ([Exception]"Was not able to create a Pester Regist ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (System.Object[]:Object[]) [], RuntimeException
+ FullyQualifiedErrorId : System.Exception: Was not able to create a Pester Registry key for TestRegistry System.M
anagement.Automation.ValidationMetadataException: The " $_ | Test-Path -PathType Leaf " validation script for the
argument with value "Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Pester" did not return a resul
t of True. Determine why the validation script failed, and then try the command again.
at System.Management.Automation.ValidateScriptAttribute.ValidateElement(Object element)
at System.Management.Automation.ValidateEnumeratedArgumentsAttribute.Validate(Object arguments, EngineIntrinsic
s engineIntrinsics)
at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledC
ommandParameter parameterMetadata, ParameterBindingFlags flags)
at Get-TempRegistry, C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules\Pester\5.0.2\Pester.psm1: line 7827
at New-RandomTempRegistry, C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules\Pester\5.0.2\Pester.psm1: line 12890
at New-TestRegistry, C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules\Pester\5.0.2\Pester.psm1: line 12807
at <ScriptBlock>, C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules\Pester\5.0.2\Pester.psm1: line 12958
Expected behaviour
When the tests are using the TestDrive, all tests runs and the TestDrive can be used.
Steps to reproduce the problem
Metadata
Metadata
Assignees
Labels
No labels