diff --git a/Support/Powershell.sublime-build b/Support/Powershell.sublime-build index c902151..5c25ccb 100644 --- a/Support/Powershell.sublime-build +++ b/Support/Powershell.sublime-build @@ -4,5 +4,17 @@ "windows": { "cmd": ["powershell.exe", "-noprofile", "-ExecutionPolicy", "Bypass", "-file", "$file"], - } + }, + + "variants": [ + { + "name": "Pester", + "cmd": ["pwsh", "-NoProfile","-NonInteractive", "-ExecutionPolicy", "Bypass","-Command","Invoke-Pester"], + "file_regex": "at , (.+): line ([0-9]+)$", + + "windows": { + "cmd": ["powershell.exe", "-NoProfile","-NonInteractive", "-ExecutionPolicy", "Bypass","-Command","Invoke-Pester"], + } + } + ] }