EvotecIT / PesterInfrastructureTests

A collection of infrastructure related tests for use with Pester & PowerShell.
MIT License
45 stars 8 forks source link

Be Exactly error? #2

Closed Ropiak closed 5 years ago

Ropiak commented 5 years ago

Getting the error below. Looks like beExactly needs to be added as a function for Pester?

RuntimeException: '-BeExactly' is not a valid Should operator. at Get-TestResult, C:\Program Files\WindowsPowerShell\Modules\Pester\3.4.0\Functions\Assertions\Should.ps1: line 42 at , C:\Program Files\WindowsPowerShell\Modules\PesterInfrastructureTests\0.0.2\Public\ActiveDirectory.ps1

PrzemyslawKlys commented 5 years ago

Install-module Pester -Force -SkipPublisherCheck

The built-in version in Windows is very old.

Ropiak commented 5 years ago

Worked thanks! I had to remove both modules then rerun the Pester this way.

PrzemyslawKlys commented 5 years ago

You could probably just do Install-Module PesterInfrastructureTests -Force which would do do nessecary reinstallation I believe