Skip to content

Commit 1243be6

Browse files
authored
Merge pull request PowerShell#511 from PowerShell/rkeithhill/is487-add-pester-tests-dbg-config
Add debug configuration for Pester tests.
2 parents 68798e5 + 8e82579 commit 1243be6

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

examples/.vscode/launch.json

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
"name": "PowerShell Interactive Session",
2424
"cwd": "${workspaceRoot}"
2525
},
26+
{
27+
"type": "PowerShell",
28+
"request": "launch",
29+
"name": "PowerShell Pester Tests",
30+
"script": "Invoke-Pester",
31+
"args": [],
32+
"cwd": "${workspaceRoot}"
33+
},
2634
{
2735
"type": "PowerShell",
2836
"request": "attach",

package.json

+12
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,18 @@
197197
"cwd": "^\"\\${workspaceRoot}\""
198198
}
199199
},
200+
{
201+
"label": "PowerShell: Pester Tests",
202+
"description": "Invokes Pester tests under debugger",
203+
"body": {
204+
"type": "PowerShell",
205+
"request": "launch",
206+
"name": "PowerShell Pester Tests",
207+
"script": "Invoke-Pester",
208+
"args": [],
209+
"cwd": "^\"\\${workspaceRoot}\""
210+
}
211+
},
200212
{
201213
"label": "PowerShell: Attach to PowerShell Host Process",
202214
"description": "Open host process picker to select process to attach debugger to",

0 commit comments

Comments
 (0)