From eb46c8990eb77434bfba461ba9145fa43fba5854 Mon Sep 17 00:00:00 2001 From: blue Date: Sat, 8 Dec 2018 18:40:56 +0000 Subject: [PATCH] Add Pester build system Add a Pester build system for PowerShell files which runs Invoke-Pester at the current location. --- Support/Pester.sublime-build | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Support/Pester.sublime-build diff --git a/Support/Pester.sublime-build b/Support/Pester.sublime-build new file mode 100644 index 0000000..23f3339 --- /dev/null +++ b/Support/Pester.sublime-build @@ -0,0 +1,9 @@ +{ + "cmd": ["pwsh", "-NoProfile","-NonInteractive", "-ExecutionPolicy", "Bypass","-Command","Invoke-Pester"], + "selector": "source.powershell", + "file_regex": "at , (.+): line ([0-9]+)$", + + "windows": { + "cmd": ["powershell.exe", "-NoProfile","-NonInteractive", "-ExecutionPolicy", "Bypass","-Command","Invoke-Pester"], + } +}