Start-PSPester: argument completer for -Path (#17334)

This commit is contained in:
Staffan Gustafsson 2022-05-25 06:25:24 +02:00 committed by GitHub
parent 736cf3ecbf
commit 80a207160b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1167,6 +1167,7 @@ function Start-PSPester {
[CmdletBinding(DefaultParameterSetName='default')]
param(
[Parameter(Position=0)]
[ArgumentCompleter({param($c,$p,$word) Get-ChildItem -Recurse -File -LiteralPath $PSScriptRoot/Test/PowerShell -filter *.tests.ps1 | Where-Object FullName -like "*$word*" })]
[string[]]$Path = @("$PSScriptRoot/test/powershell"),
[string]$OutputFormat = "NUnitXml",
[string]$OutputFile = "pester-tests.xml",