Skip to content

Commit 7178df2

Browse files
committed
Add Pester build system variant for PowerShell
Add a Pester build system variant for PowerShell files which runs Invoke-Pester at the current location.
1 parent 46879ab commit 7178df2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Support/Powershell.sublime-build

+13-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,17 @@
44

55
"windows": {
66
"cmd": ["powershell.exe", "-noprofile", "-ExecutionPolicy", "Bypass", "-file", "$file"],
7-
}
7+
},
8+
9+
"variants": [
10+
{
11+
"name": "Pester",
12+
"cmd": ["pwsh", "-NoProfile","-NonInteractive", "-ExecutionPolicy", "Bypass","-Command","Invoke-Pester"],
13+
"file_regex": "at <ScriptBlock>, (.+): line ([0-9]+)$",
14+
15+
"windows": {
16+
"cmd": ["powershell.exe", "-NoProfile","-NonInteractive", "-ExecutionPolicy", "Bypass","-Command","Invoke-Pester"],
17+
}
18+
}
19+
]
820
}

0 commit comments

Comments
 (0)