If I have a powershell build script and I want to call Invoke-Pester, how can I determine the exit status of the command?
I in change #18 the addition of the -ExitCode parameter, but when include this parameter it closes my powershell window. Not what I want...
How do I get a handle to the test results of Invoke-Pester? Something like '$LASTEXITCODE` will do, but even a Powershell object with more test results would be good.
Thoughts?
If I have a powershell build script and I want to call
Invoke-Pester, how can I determine the exit status of the command?I in change #18 the addition of the
-ExitCodeparameter, but when include this parameter it closes my powershell window. Not what I want...How do I get a handle to the test results of
Invoke-Pester? Something like '$LASTEXITCODE` will do, but even a Powershell object with more test results would be good.Thoughts?