Skip to content

Releases: pester/Pester

3.3.9

24 May 01:21
Compare
Choose a tag to compare
  • Fixed Describe's handling of TestName filter when multiple strings are passed to Invoke-Pester's -TestName parameter.
  • Failing BeforeEach or AfterEach will fail the test [GH-326]
  • Added BeOfType operator to the Should command. [GH-327]
  • Fixed BeforeEach / etc parsing in PSv3+ so breakpoints and automatic variables ($PSCommandPath, etc) will work properly. [GH-333]
  • Fixed bug in 'Should Be' when comparing strings, and null or empty strings are piped in to the Should command. [GH-333]
  • Added some calls to Write-Progress in the It command. [GH-322]
  • Bug fix when mocking functions that are in the global scope; the original functions were being lost when the Describe block ended. [GH-323]
  • Improved failed assertion output from Assert-MockCalled; now behaves more like Should. [GH-324]
  • Added -ExclusiveFilter parameter to Assert-MockCalled. Works like -ParameterFilter, except there also must not be any calls to the mocked command which do not match the filter.
  • Added the "bin" folder to the PATH environment variable when installing from Chocolatey. Also removed the hard-coded -OutputXml and -Strict parameters from this file; only -EnableExit is always used from the bat file now. [GH-281]
  • PassThru object (when used in conjunction with -CodeCoverage) now includes information about Hit commands in addition to Missed commands. [GH-341]
  • Improvements to support for mocking advanced fynctions with dynamic parameters. [GH-346]
  • Fix for PowerShell v2 bug when mocking commands that have an -ArgumentList parameter with validation attributes. [GH-354]
  • Fixed stack trace output when the call to Should is in a file other than the file that contains the It block. [GH-358]

3.3.8

15 Apr 18:19
Compare
Choose a tag to compare

Minor fix for mocking when client code overwrites the $ExecutionContext built-in variable.

3.3.7

15 Apr 11:59
Compare
Choose a tag to compare

Minor fixes to Mocking:

  • Mocking AD cmdlets was producing errors due to how their Dynamic Parameters are returned. This has been fixed.
  • Mocking functions is now more robust in situations where the mocked function has potentially unresolved parameter sets at the time the dynamicparam block is evaluated, or where the mocked function has defined parameters named $ExecutionContext or $MyInvocation.

v3.3.6

19 Mar 11:06
Compare
Choose a tag to compare
Update CHANGELOG.md

v3.3.5

28 Jan 05:44
Compare
Choose a tag to compare
Preparing v3.3.5 release

Snippets directory included in nuspec package.  (Has also been added to the PowerShellGet publish step in the CI build.)

v3.3.4

22 Jan 19:59
Compare
Choose a tag to compare

Same as v3.3.2; just sorting out some upload problems with PowerShellGet and our CI job.

v3.3.2

19 Jan 21:07
Compare
Choose a tag to compare

Performance-related changes; pretty significant speed increase from v3.3.1.

v3.2.0

13 Dec 16:56
Compare
Choose a tag to compare
  • Added BeGreaterThan and BeLessThan assertions to Should.
  • Add -Quiet parameter for Invoke-Pester that disables the output written to screen by Write-Host [GH-223]
  • Fix Error output for TestDrive [GH-232]
  • Add ExcludeTagFilter parameter [GH-234]
  • Add different color schemes for dark and light backgrounds

v3.1.1

29 Oct 18:48
Compare
Choose a tag to compare

Bug fixes from 3.1; the -Skip and -Pending tags weren't working due to poorly merged branches. We've added more tests in v3.1.1 to make sure this doesn't break in the future.

v3.1

24 Oct 02:34
Compare
Choose a tag to compare
  • Fix mocking of Get-ItemProperty
  • Fix mocking commands with parameters named $FunctionName, $ModuleName or $ArgumentList under some circumstances.
  • Add Skipped and Pending test results.
  • Added support for parameterized tests to the It command.
  • Deprecated -OutputXml parameter, added -OutputFile and -OutputFormat parameters.
  • Added new updated NUnit export format. Original format still available as -OutputFormat LegacyNUnitXml.
  • Stopped forcing -ParameterFilter blocks to return explicit booleans, preventing some unnecessary null reference exceptions.