From 060b51b169f42b033a183898b030bf03d7f9201c Mon Sep 17 00:00:00 2001 From: mgreenegit Date: Thu, 11 Feb 2016 14:57:16 -0600 Subject: [PATCH] add task runner for Pester --- examples/.vscode/tasks.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 examples/.vscode/tasks.json diff --git a/examples/.vscode/tasks.json b/examples/.vscode/tasks.json new file mode 100644 index 0000000000..6ab2591d6f --- /dev/null +++ b/examples/.vscode/tasks.json @@ -0,0 +1,31 @@ +// This uses the 'taskRunnertest' tag to specify which tests to include. + +// A task runner that calls Pester for testing the current project +{ + "version": "0.1.0", + + // Start PowerShell + "command": "c:\\windows\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe", + + // The command is a shell script + "isShellCommand": true, + + // Show the output window always + "showOutput": "always", + + // Allow Pester to invoke scripts and run Pester + "args": [ + "-NoProfile", + "Set-ExecutionPolicy -ExecutionPolicy 'RemoteSigned' -Scope 'Process';", + "write-host 'invoking Pester...';invoke-pester;", + "invoke-command {write-host \"Completed all tasks in taskRunner: $args[0]\"} -args" + ], + + // Associate with test taskrunner + "tasks": [ + { + "taskName": "Pester", + "isTestCommand": true + } + ] +}