From 80a207160b8aca2923eb34a064df620d073d01fa Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Wed, 25 May 2022 06:25:24 +0200 Subject: [PATCH] Start-PSPester: argument completer for -Path (#17334) --- build.psm1 | 1 + 1 file changed, 1 insertion(+) diff --git a/build.psm1 b/build.psm1 index d8796b78e1..2f2f0bc2d9 100644 --- a/build.psm1 +++ b/build.psm1 @@ -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",