File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ // This uses the 'taskRunnertest' tag to specify which tests to include.
2+
3+ // A task runner that calls Pester for testing the current project
4+ {
5+ "version" : " 0.1.0" ,
6+
7+ // Start PowerShell
8+ "command" : " c:\\ windows\\ sysnative\\ windowspowershell\\ v1.0\\ PowerShell.exe" ,
9+
10+ // The command is a shell script
11+ "isShellCommand" : true ,
12+
13+ // Show the output window always
14+ "showOutput" : " always" ,
15+
16+ // Allow Pester to invoke scripts and run Pester
17+ "args" : [
18+ " -NoProfile" ,
19+ " Set-ExecutionPolicy -ExecutionPolicy 'RemoteSigned' -Scope 'Process';" ,
20+ " write-host 'invoking Pester...';invoke-pester;" ,
21+ " invoke-command {write-host \" Completed all tasks in taskRunner: $args[0]\" } -args"
22+ ],
23+
24+ // Associate with test taskrunner
25+ "tasks" : [
26+ {
27+ "taskName" : " Pester" ,
28+ "isTestCommand" : true
29+ }
30+ ]
31+ }
You can’t perform that action at this time.
0 commit comments