PesterConverter
0.2.0-preview0015
Commands to convert Pester tests.
Minimum PowerShell version
7.1
See the version list below for details.
Installation Options
Owners
Copyright
Copyright the PesterConverter contributors. All rights reserved.
Package Details
Author(s)
- Viscalyx
Tags
Functions
Dependencies
This module has no dependencies.
Release Notes
## [0.2.0-preview0015] - 2026-06-29
### Added
- Public commands:
- `Convert-PesterSyntax`
- Add support for `Should` operators:
- Be
- BeExactly
- BeFalse
- BeGreaterOrEqual
- BeGreaterThan
- BeIn
- BeLessOrEqual
- BeLessThan
- BeLike
- BeLikeExactly
- BeNullOrEmpty
- BeOfType
- BeTrue
- Contain
- HaveCount
- Invoke
- Match
- MatchExactly
- Throw
- Add support for `Assert-MockCalled`.
- Added new parameter `OutputPath` to write the resulting file to
a separate path.
- Add integration tests.
### Fixed
- Improve code to resolve ScriptAnalyzer warnings and errors.
- Localize all the strings.
- `Convert-PesterSyntax`
- The `Should` operators `BeLike` and `BeLikeExactly` was mistakenly not
calling their respectively conversion function.
- Correctly handle abbreviated named parameters.
- `Should -BeFalse`, `Should -BeTrue` and `Should -BeNullOrEmpty` are now
correctly converted when `Because` is the only positional parameter.
- Negated `Should -Not -BeLessThan` now converts to `Should-BeGreaterThanOrEqual`
to correctly handle scenario when actual value and expected value are the same.
- Negated `Should -Not -BeGreaterThan` now converts to `Should-BeLessThanOrEqual`
to correctly handle scenario when actual value and expected value are the same.
- Fix parameter name in `Convert-ShouldBeOfType`
- Minor change to `Get-AstDefinition` to handle when a file is not correctly
parsed.
- Some code cleanup.
- Fix incorrect position value in Get-PesterCommandParameter.
- Update PowerShell version requirement to 7.1.
- `Get-PesterCommandParameter`
- Now supports Switch parameters.
- Also supports when Switch parameters is the last parameter on the extent.
- Update test assertions to use Pester v6 syntax.
- Updated conversion documentation for `Should -Invoke`, `Should -Not -Invoke`
and `Should -HaveCount`.
- Now converting `Should -HaveCount` works when `-Not:$false` is specified.
- Bump action Stale to v10
- Bump action Checkout to v7
- Bump action codeql-action/upload-sarif to v4
- Improve the warning message when user have user short form of a parameter name.
FileList
- PesterConverter.nuspec
- Modules\DscResource.Common\0.24.5\DscResource.Common.psm1
- PesterConverter.psd1
- Modules\DscResource.Common\0.24.5\DscResource.Common.psd1
- PesterConverter.psm1
- Modules\DscResource.Common\0.24.5\en-US\DscResource.Common.strings.psd1
- en-US\PesterConverter-help.xml
- Modules\DscResource.Common\0.24.5\en-US\DscResource.Common-help.xml
- en-US\about_PesterConverter.help.txt
- Modules\DscResource.Common\0.24.5\en-US\about_DscResource.Common.help.txt
- en-US\PesterConverter.strings.psd1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.2.1 | 6 | 6/30/2026 |
| 0.2.1-previe... | 3 | 6/30/2026 |
| 0.2.0 | 5 | 6/29/2026 |
| 0.2.0-previe... (current version) | 3 | 6/29/2026 |
| 0.2.0-previe... | 10 | 2/16/2025 |
| 0.2.0-previe... | 6 | 2/8/2025 |
| 0.2.0-previe... | 4 | 2/8/2025 |
| 0.2.0-previe... | 4 | 2/8/2025 |
| 0.2.0-previe... | 4 | 2/7/2025 |
| 0.2.0-previe... | 8 | 8/6/2024 |
| 0.2.0-previe... | 4 | 8/2/2024 |
| 0.2.0-previe... | 957 | 7/14/2024 |
| 0.2.0-previe... | 5 | 7/12/2024 |
| 0.2.0-previe... | 5 | 7/12/2024 |
| 0.2.0-previe... | 4 | 7/12/2024 |
| 0.2.0-previe... | 3 | 7/11/2024 |
| 0.2.0-previe... | 4 | 7/11/2024 |
| 0.2.0-previe... | 4 | 7/11/2024 |
| 0.1.0-previe... | 4 | 7/11/2024 |