Skip to content

Releases: pester/Pester

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

5.6.0-beta1

25 Apr 19:29
Compare
Choose a tag to compare
5.6.0-beta1 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:

New Contributors

And also a bit 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-beta1

5.5.0

27 Jun 16:10
Compare
Choose a tag to compare

What's Changed

  • Add support for NUnit3 XML-reports by @fflaten in #2208
  • Add -InParameterSet in Should -HaveParameter by @fflaten in #2273
  • CI Treat Errors As Warnings - ref #2295 by @erikgraa in #2296
  • Add missing container-parameters to Data before BeforeDiscovery by @fflaten in #2361
  • Fix ANSI sequence shown in Azure DevOps summary by @fflaten in #2352
  • Support Should -HaveParameter -DefaultValue for AliasInfo and scripts by @fflaten in #2353
  • Update error messages in Should -Throw by @fflaten in #2354
  • Fix parameter default values leaking to Data in user-provided Container by @fflaten in #2362
  • Rename TestCases parameter to ForEach by @nohwnd in #2311

Pester in Pester

  • Do not cleanup previous mocks in inner Invoke-Pester by @fflaten in #2337
  • Reattach TestDrive and TestRegistry after running inner Invoke-Pester by @fflaten in #2341

Perf

Internal fixes

  • Support building assembly with Debug configuration by @fflaten in #2339
  • Address analyzer suggestions for csharp-project by @fflaten in #2307
  • Add Run.Exit option clarification by @nohwnd in #2346
  • Fix false errors and broken CI-logs from P-tests by @fflaten in #2345
  • Upgrade to action/checkout v3 in PSSA workflow by @fflaten in #2351
  • Change sponsoring in readme by @nohwnd in #2363
  • Refactor Invoke-Pester and validate configuration early by @fflaten in #2317
  • Reorganize TestResuls-code into format-specific files by @fflaten in #2348

New Contributors

Full Changelog: 5.4.1...5.5.0