Johan Ljunggren
Johan Ljunggren
I ran the following command ```powershell New-StubModule -FromModule ActiveDirectory -Path C:\projects\stub -FunctionBody { throw '{0}: StubNotImplemented' -f $MyInvocation.MyCommand } ``` When using the stubs in the unit tests, the type...
The stub cmdlet `Move-ADDirectoryServer` passes a string in the parameter `Site`. But the parameter `Site` is of the type `Microsoft.ActiveDirectory.Management.ADReplicationSite` which is a stub type. When using an assert like...
### Checklist - [X] Feature request has a meaningful title - [X] I have searched the existing issues. See [all issues](https://github.com/pester/Pester/issues?q=is%3Aissue) - [X] I have tested using the latest version...
### Checklist - [X] Feature request has a meaningful title - [X] I have searched the existing issues. See [all issues](https://github.com/pester/Pester/issues?q=is%3Aissue) - [X] I have tested using the latest version...
## Summary of the feature request As a user I'd like to be able to output a big chunk of text (like a log) when a test does not pass....
### Checklist - [X] Issue has a meaningful title - [X] I have searched the existing issues. See [all issues](https://github.com/pester/Pester/issues?q=is%3Aissue) - [X] I have tested using the latest version of...
## 1. General summary of the issue When using `HaveCount` on a hashtable, the count is always 1. The following snippet shows the problem (both in Windows PowerShell and PowerShell...
## Summary of the feature request As a contributor or maintainer of a project I'd like to be able to help other contributors to correctly mock functions by failing a...
#### Pull Request (PR) description The goal I had was to be able to run the integration tests on a VM in Hyper-V using Pester and get the Pester output...
There are places in the code that make calls to cmdlets and use a long list of parameters. Example: https://github.com/PowerShell/xActiveDirectory/blob/07c878522df6015f5a74692e931ddeeeb5d9decf/DSCResources/MSFT_xADOrganizationalUnit/MSFT_xADOrganizationalUnit.psm1#L28 We should use splatting at these locations throughout the repo...