Releases: pester/Pester
6.0.0-alpha5
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
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
- Fix
Should-Any
andShould-All
#2513
Full Changelog: 6.0.0-alpha2...6.0.0-alpha3
5.6.1
6.0.0-alpha2
What's Changed
- Remove Assert-MockCalled and Assert-VerifiableMock by @fflaten in #2489
- Fix security and support by @nohwnd in #2497
- Use functions instead of aliases and patch warning by @nohwnd in #2499
- Add option to disable v5 syntax by @nohwnd in #2500
- Fix console warnings in Should-BeEquivalent.Tests.ps1 by @fflaten in #2488
- Add -TrimWhitespace to Should-BeString by @nohwnd in #2501
- Improve descriptions for PesterConfiguration sections by @fflaten in #2505
- Replace Get-EquivalencyOptions with parameters by @nohwnd in #2502
- Fix Should-BeCollection by @nohwnd in #2506
- Update cert-notice readme by @WithHolm in #2504
- Use the actual object instead of 'the other' by @nohwnd in #2509
- Do not output value from assertion by @nohwnd in #2512
New Contributors
Full Changelog: 6.0.0-alpha1...6.0.0-alpha2
6.0.0-alpha1
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.
More changes:
- Set profiler based CodeCoverage as default by @nohwnd in #2456
- Remove Pending status by @nohwnd in #2457
- Ignore PassThru when run fail while using Run.Exit by @fflaten in #2303
- Shorten TestDrive directory name by @splatteredbits in #2239
- Add null check for $host.UI and its properties to avoid race condition (#2383) by @kborowinski in #2468
- Hide legacy-only parameters in Invoke-Pester by @fflaten in #2446
- Remove Should legacy syntax error by @fflaten in #2445
- Fix NRE in mock debug log for native commands by @fflaten in #2480
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
- @kborowinski made their first contribution in #2468
Full Changelog: 5.6.0-rc1...6.0.0-alpha1
5.6.0
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.
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
- @stan-alam made their first contribution in #2397
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
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.
And more:
(in beta1)
- 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
(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
- @stan-alam made their first contribution in #2397
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
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.
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
New Contributors
- @stan-alam made their first contribution in #2397
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
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