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

This commit is contained in:
Staffan Gustafsson
2022-05-25 09:25:24 +05:00
committed by GitHub
parent 736cf3ecbf
commit 80a207160b
+1
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",