Skip to content

Commit

Permalink
Add Pester build system variant for PowerShell
Browse files Browse the repository at this point in the history
Add a Pester build system variant for PowerShell files which runs
Invoke-Pester at the current location.
  • Loading branch information
theaquamarine committed Dec 8, 2018
1 parent 46879ab commit 7178df2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Support/Powershell.sublime-build
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ScriptBlock>, (.+): line ([0-9]+)$",

"windows": {
"cmd": ["powershell.exe", "-NoProfile","-NonInteractive", "-ExecutionPolicy", "Bypass","-Command","Invoke-Pester"],
}
}
]
}

0 comments on commit 7178df2

Please sign in to comment.