Pester
Pester copied to clipboard
Pester is the ubiquitous test and mock framework for PowerShell.
## 1. General summary of the issue The `Get-AzureRmContext` defines a dynamic ValidateSet for the `Name` Parameter, that checks if the given Name is existing on the current Machine. Using...
In order to fix `Get-PackageSource` cmdlet, another level of indirection was introduced which broke other things. Original issue and PR: #1308 #1317 Issue it caused and revert PR: #1519 #1528
When running in the context of Mock we should collect errors and fail the MockWith or ParameterFilter, instead of writing the errors to the parent It block.
## General summary of the issue When mocking `Out-File` and invoking it in code using `Out-File -FilePath $path -Encoding utf8NoBOM -Force;`, Pester produces this error when executing a test: ```...
A typical failure from Assert-MockCalled is: "Expected xyz in module abc to be called at least 1 times but was called 0 times" Working from just that sparse information, though,...
## PR Summary Single item arrays are currently printed as single item without type-specific formatting because `Is-Value` expands them. Arrays with a single string or bool (more types?) will not...
## 1. General summary of the issue While testing out new Code Coverage Reporting capability in Azure DevOps with a dummy PowerShell module, I've noticed, that if my module has...
## 1. General summary of the issue ExcludePath only works for files, not directories, even though the description says it should work for directories.  ## 2. Describe Your Environment...
> Should we just rename the Id-property to `GroupId` and use a guid to make it more obvious? It's a public property, but I doubt anyone relies on it and...
## PR Summary Result object was printed when run failed because it was sent to standard output, but never reached variable assignment before `Run.Exit` killed the process causing a text...