Skip to content

Releases: pester/Pester

5.7.1

08 Jan 21:13
Compare
Choose a tag to compare

Fixes broken upload to nuget.org.

No functional changes from 5.7.0

5.7.0

08 Jan 20:25
Compare
Choose a tag to compare

What's Changed

Code coverage

more fixes

  • Fix formatting for Set-ItResult with because, removing trailing comma and redundant "because" by @wethreetrees in #2589
  • Cleanup about_* help topics and extract PesterConfiguration docs to about_PesterConfiguration by @fflaten in #2522
  • Fix Should -Throw to handle expected message with escaped wildcard (backport) by @johlju in #2560
  • Use versioned links for online v5 docs by @fflaten in #2579

infra and internal changes

Full Changelog: 5.6.1...5.7.0

6.0.0-alpha5

30 Oct 21:56
Compare
Choose a tag to compare
6.0.0-alpha5 Pre-release
Pre-release

What's Changed

  • Update certificate thumbprint by @nohwnd in #2532
  • Throw when providing null or empty array to -ForEach by @fflaten in #2537
  • Support v5 positional syntax in Should-Throw by @fflaten in #2536
  • Exclude duplicate files for Run.Path and CodeCoverage.Path by @fflaten in #2535
  • Extract files to publish from release script by @nohwnd in #2544
  • Fix Should-Throw/Should -Throw to handle expected message with escaped wildcard by @johlju in #2559
  • Ignore call base class contructor in code coverage by @fflaten in #2553
  • Add tests for custom assertions by @fflaten in #2552
  • Implement Cobertura coverage format by @joeskeen in #2298
  • Add -Count to Should-BeCollection by @nohwnd in #2567
  • Throw on unbound user-provided scriptblocks by @fflaten in #2551

New Contributors

Full Changelog: 6.0.0-alpha4...6.0.0-alpha5

6.0.0-alpha4

05 Jul 13:24
Compare
Choose a tag to compare
6.0.0-alpha4 Pre-release
Pre-release

What's Changed

  • Fix a bug where the NUnit-Report fails to generate if the test output contains Virtual Terminal Sequences by @ocalvo in #2511
  • Cleanup about_* help topics and extract PesterConfiguration docs to about_PesterConfiguration by @fflaten in #2518
  • Add OutputType to improve tab-completion/intellisense by @fflaten in #2519
  • Remove old and redundant functions by @fflaten in #2520
  • Implement CodeCoverage.ExcludeTests by @fflaten in #2523
  • Add missing test file by @fflaten in #2525
  • Sign on server by @nohwnd in #2531

New Contributors

Full Changelog: 6.0.0-alpha3...6.0.0-alpha4

6.0.0-alpha3

26 Jun 22:31
337c213
Compare
Choose a tag to compare
6.0.0-alpha3 Pre-release
Pre-release
  • Fix Should-Any and Should-All #2513

Full Changelog: 6.0.0-alpha2...6.0.0-alpha3

5.6.1

01 Jul 16:13
Compare
Choose a tag to compare

What's Changed

  • Fix a bug where the NUnit-Report fails to generate if the test output contains Virtual Terminal Sequences by @ocalvo in #2511 (backported via: #2521)

Full Changelog: 5.6.0...5.6.1

6.0.0-alpha2

26 Jun 08:52
95a1a41
Compare
Choose a tag to compare
6.0.0-alpha2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 6.0.0-alpha1...6.0.0-alpha2

6.0.0-alpha1

05 Jun 08:25
42db191
Compare
Choose a tag to compare
6.0.0-alpha1 Pre-release
Pre-release

What's Changed

If you have ideas for breaking (and other changes) that should happen in Pester 6 and that are not in Pester 6 milestone, please let us know in discussion, in the issue you want to link, or in a new issue 🙏

Assert assertions are becoming part of Pester

Assert assertions were migrated to Pester, and we will continue improving them here. They are published as Should-Be and similar aliases (no space) from the Pester module, as well as Assert-Equal functions. (Because of the naming limitations we cannot use Should-* directly.

The assertions are split into 4 categories, generic, type specific, collection, and equivalency. See this doc for the initial documentation. There will be more I promise.

Pester supports only 5.1 and 7

We've dropped support for PowerShell 3, 4, 6 and early 7. All of those versions are officially out of support by Microsoft. This will help us modernize the code base and further improve performance.

  • Drop support of PowerShell 3, 4, 6.2, and unsupported 7 #2432 by @nohwnd

More changes:

Internal and Infrastructure changes:

  • Remove blank output in PesterThrow.Tests.ps1 by @fflaten in #2460
  • Hide failing output that always scares me by @nohwnd in #2461
  • Replace New-Object calls with ::new() by @fflaten in #2469
  • Replace deprecated macOS 11 image with 13 in CI by @fflaten in #2482
  • Report code coverage that includes P tests by @nohwnd in #2478

New Contributors

Full Changelog: 5.6.0-rc1...6.0.0-alpha1

5.6.0

05 Jun 07:37
Compare
Choose a tag to compare

What's Changed

Inconclusive is back!

  • Set-ItResult: Return distinctive ErrorId depending on switch used by @csandfeld in #2401
  • Handle tests marked as inconclusive by @csandfeld in #2405
  • Add missing help for -Skip in Context and Describe by @fflaten in #2426

Should -HaveParameter regression is fixed.

  • Fix Should -HaveParamter -DefaultValue by @nohwnd in #2398

And more:

  • fixed typo in property params in TestReults.ps1 by @stan-alam in #2397
  • Update code-analysis workflow to node20 actions by @fflaten in #2429
  • Update PesterTests and devcontainer to .NET 8 by @fflaten in #2430
  • Update coverage publish task by @nohwnd in #2433
  • Fix docs for FileContentMatchMultiline* operators by @fflaten in #2377
  • Extract common helper-functions in P-tests by @fflaten in #2378
  • Feature Request: ShouldResult property by @JustinGrote in #2381
  • Replace Id with GroupId in Block and Test objects by @fflaten in #2364
  • Standardize container name and type validation by @fflaten in #2379
  • Fix WildcardPatternException when using dt in P by @fflaten in #2443
  • Fix possible NRE in NUnit3 export by @fflaten in #2444
  • Skip blocks without runnable tests by @fflaten in #2447
  • Ignore excluded/skipped tests and unnecessary setup/teardown using SkipRemainingOnFailure by @fflaten in #2442
  • Add null check for $host.UI and its properties to avoid race condition (#2383) by @kborowinski in #2472
  • Fix NRE in mock debug log for native commands by @fflaten in #2481
  • Replace deprecated macOS 11 image with 13 in CI by @fflaten in #2483

New Contributors

And also a big thank you to @fflaten!

Contrary to my tweet, we won't remove support for 3, 4, and 6.2 in Pester 5, the PR was added and then reverted. Will keep that change for Pester 6.

  • Drop support of PowerShell 3, 4, 6.2, and unsupported 7 by @nohwnd in #2432
  • Revert dropping support of Powershell 3 and friends by @nohwnd in #2435

Error on update:

My certificate was renewed, and you will get error on update, because the Issuer changed. And there is no way to get valid certificate from the previous issuer. It is still signed by me, but don't take my word for it, go check the certificate.

Full Changelog: 5.5.0...5.6.0

5.6.0-rc1

17 May 19:38
Compare
Choose a tag to compare
5.6.0-rc1 Pre-release
Pre-release

What's Changed

Inconclusive is back!

  • Set-ItResult: Return distinctive ErrorId depending on switch used by @csandfeld in #2401
  • Handle tests marked as inconclusive by @csandfeld in #2405
  • Add missing help for -Skip in Context and Describe by @fflaten in #2426

Should -HaveParameter regression is fixed.

  • Fix Should -HaveParamter -DefaultValue by @nohwnd in #2398

And more:

(in beta1)

(in rc1)

  • Standardize container name and type validation by @fflaten in #2379
  • Fix WildcardPatternException when using dt in P by @fflaten in #2443
  • Fix possible NRE in NUnit3 export by @fflaten in #2444
  • Skip blocks without runnable tests by @fflaten in #2447
  • Ignore excluded/skipped tests and unnecessary setup/teardown using SkipRemainingOnFailure by @fflaten in #2442

New Contributors

And also a big thank you to @fflaten!

Contrary to my tweet, we won't remove support for 3, 4, and 6.2 in Pester 5, the PR was added and then reverted. Will keep that change for Pester 6.

  • Drop support of PowerShell 3, 4, 6.2, and unsupported 7 by @nohwnd in #2432
  • Revert dropping support of Powershell 3 and friends by @nohwnd in #2435

Error on update:

My certificate was renewed, and you will get error on update, because the Issuer changed. And there is no way to get valid certificate from the previous issuer. It is still signed by me, but don't take my word for it, go check the certificate.

Full Changelog: 5.6.0-beta1...5.6.0-rc1