You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It run fine on my machine using pester 5.0.4 but not with AzureDevops
I try setting 32bit=true, switching from importmodule to dotsourcing, preferredPesterVersion , additionalModulePath (which is not the good one right now, I dont have only one path for all import)
I think it's because i used powershell v5.1 on my machine, and remote is 7.1 ?
The text was updated successfully, but these errors were encountered:
I found it today
This was working with debugger but not with Invoke-Pester , i fix it placing import in BeforeAll. When you have no beforeall , it run fine using Tests.ps1 but not with Invoke-Pester
Where are you running it?
Expected behaviour and actual behaviour
CommandNotFoundException: Could not find Command PSIISReset
I import with in Tests.ps1
. "$PSScriptRoot..\ArielDbCore\IISOperations.ps1"
My pipeline :
inputs:
scriptFolder: "$(System.DefaultWorkingDirectory)\ArielDb-Orchestrator\Tests.ps1"
resultsFile: "$(System.DefaultWorkingDirectory)\Test-Pester-ArielDb-Orchestrator.XML"
CodeCoverageOutputFile: "$(System.DefaultWorkingDirectory)\ArielDb-OrchestratorCoverage.XML"
usePSCore: False
CodeCoverageFolder: "$(System.DefaultWorkingDirectory)\ArielDb-Orchestrator"
preferredPesterVersion: '5.0.4'
additionalModulePath: '$(System.DefaultWorkingDirectory)\ArielDb-Orchestrator'
Steps to reproduce the problem
It run fine on my machine using pester 5.0.4 but not with AzureDevops
I try setting 32bit=true, switching from importmodule to dotsourcing, preferredPesterVersion , additionalModulePath (which is not the good one right now, I dont have only one path for all import)
I think it's because i used powershell v5.1 on my machine, and remote is 7.1 ?
The text was updated successfully, but these errors were encountered: