During the invocation of Pester, the parameter -TestName use always double quotes and causes the expansion of variables #891
Closed
Description
System Details
- Operating system name and version:
Windows Seven SP1 FR
PS G:\PS\FluentDateTime\Test> code -v
1.13.1
379d2efb5539b09112c793d3d9a413017d736f89
PS G:\PS\FluentDateTime\Test> $pseditor.EditorServicesVersion
Major Minor Build Revision
----- ----- ----- --------
1 3 2 0
PS G:\PS\FluentDateTime\Test> code --list-extensions --show-versions
alefragnani.Bookmarks@0.15.1
alefragnani.project-manager@0.18.0
dananicc.theme-doucenuit@0.3.0
dbankier.vscode-instant-markdown@1.1.0
DotJoshJohnson.xml@1.9.0
ms-vscode.csharp@1.10.0
ms-vscode.PowerShell@1.3.2
psake.psake-vscode@0.1.0
robertohuertasm.vscode-icons@7.9.0
PS G:\PS\FluentDateTime\Test> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.14409.1005
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1005
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
I am experiencing a problem with running Pester test inside the editor.
The name of my test use simple quotes :
Describe 'Exported variable $IsoCountiesFR'
But during the invocation -TestName use double quotes :
Invoke-Pester -Script "g:\PS\FluentDateTime\Test\Get-PublicHolidayFR.Tests.ps1" -TestName "Exported variable $IsoCountiesFR"
This expand the variable and change the name of the test that do not exist