Skip to content

Commit

Permalink
Hide legacy-only parameters in Invoke-Pester (#2446)
Browse files Browse the repository at this point in the history
* Use new certificate thumbprint

* Hide legacy-only parameters in Invoke-Pester

---------

Co-authored-by: Jakub Jareš <[email protected]>
  • Loading branch information
fflaten and nohwnd authored May 17, 2024
1 parent 2c390f4 commit dd43ae2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -630,39 +630,39 @@ function Invoke-Pester {
[PesterConfiguration] $Configuration,

# rest of the Legacy set
[Parameter(Position = 2, Mandatory = 0, ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(Position = 2, Mandatory = 0, ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[switch]$EnableExit,

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[object[]] $CodeCoverage = @(),

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[string] $CodeCoverageOutputFile,

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[string] $CodeCoverageOutputFileEncoding = 'utf8',

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[ValidateSet('JaCoCo')]
[String]$CodeCoverageOutputFileFormat = "JaCoCo",

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[Switch]$Strict,

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[string] $OutputFile,

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[ValidateSet('NUnitXml', 'NUnit2.5', 'JUnitXml')]
[string] $OutputFormat = 'NUnitXml',

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[Switch]$Quiet,

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[object]$PesterOption,

[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated
[Parameter(ParameterSetName = "Legacy", DontShow)] # Legacy set for v4 compatibility during migration - deprecated
[Pester.OutputTypes]$Show = 'All'
)
begin {
Expand Down

0 comments on commit dd43ae2

Please sign in to comment.