Skip to content

Commit 659cd0d

Browse files
committed
Run Pester tests using single quotes for test name
This change causes Pester tests run with the "Run/Debug Tests" CodeLenses to be launched using single quotes with the `-TestName` parameter so that variable names in the test name don't get expanded. Resolves #891
1 parent ec53532 commit 659cd0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/features/PesterTests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class PesterTestsFeature implements IFeature {
4141
args: [
4242
`-Script "${uri.fsPath}"`,
4343
describeBlockName
44-
? `-TestName "${describeBlockName}"`
44+
? `-TestName '${describeBlockName}'`
4545
: ""
4646
],
4747
internalConsoleOptions: "neverOpen",

0 commit comments

Comments
 (0)