Skip to content

Commit dfa0d00

Browse files
committed
Merge pull request #97 from mgreenegit/pesterTask
add task runner for Pester
2 parents 0bf4a12 + 060b51b commit dfa0d00

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

examples/.vscode/tasks.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
}

0 commit comments

Comments
 (0)