Dave Wyatt
Dave Wyatt
The behavior you've observed with collections has to do with the fact that we're using the pipeline to send input to the Should command (which causes me no end of...
Note: In PowerShell 3.0 and later, rather than the unary comma operator, you can also use the `-NoEnumerate` parameter of `Write-Output` to achieve the same effect. However, if you want...
In principle, I don't disagree with you, but Pester is written in PowerShell, and sometimes we just have to accept the way that PowerShell works. If we fundamentally change the...
Also, looks like `Should BeOfType` (with or without `Not`) already handles stripping off the square brackets, if needed. The only problems you were running into had to do with the...
https://pester.dev/docs/usage/code-coverage/ : A quick note on the "analyzed commands" numbers. You may have noticed that even though CoverageTest.ps1 is 17 lines long, Pester reports that only 5 commands are being...
Correct, though you can often set a breakpoint on a line with `throw` if you pass it an argument. It's the expression that triggers the breakpoint though, not the throw...
Can you provide examples of what you're seeing in the file now, and what you'd like to see?
I'll think about it, but capturing that output (particularly when we still need to support PowerShell v2) is tricky. Write-Host, in particular, is a problem (which is why it's generally...
I'll take a look at this later today when I have time. There have been a couple of instances of weird cmdlets that break the dynamic parameter mocking code (such...
I haven't been able to reproduce this yet. This code doesn't give me the error you reported: ``` posh Describe 'Test' { Mock New-AzureResourceGroupDeployment { throw "No appropriate mock called...