Skip to content

Latest commit

 

History

History
53 lines (47 loc) · 1.78 KB

CHANGELOG.md

File metadata and controls

53 lines (47 loc) · 1.78 KB

Changelog for PesterConverter

The format is based on and uses the types of changes according to Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Added

  • Public commands:
    • Convert-PesterSyntax
      • Add support for Should operators:
        • Be
        • BeExactly
        • BeFalse
        • BeGreaterOrEqual
        • BeGreaterThan
        • BeIn
        • BeLessOrEqual
        • BeLessThan
        • BeLike
        • BeLikeExactly
        • BeNullOrEmpty
        • BeOfType
        • BeTrue
        • Contain
        • Match
        • MatchExactly
        • Throw
      • 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.