diff --git a/Scripts/PesterInterface.ps1 b/Scripts/PesterInterface.ps1 index 4bec58d4..5a1acd2b 100644 --- a/Scripts/PesterInterface.ps1 +++ b/Scripts/PesterInterface.ps1 @@ -139,7 +139,12 @@ function New-TestItemId { # If this is a root container, just return the file path, since root containers can only be files (for now) if ($Test -is [Pester.Block] -and $Test.IsRoot) { - return $Test.BlockContainer.Item.ToString().ToUpper() + [string]$path = $Test.BlockContainer.Item + if ($IsWindows -or $PSEdition -eq 'Desktop') { + return $path.ToUpper() + } else { + return $path + } } [String]$TestID = @( diff --git a/package.json b/package.json index 12de3725..24778eda 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,9 @@ "items": { "type": "string" }, - "default": ["**/*.[tT]ests.[pP][sS]1"], + "default": [ + "**/*.[tT]ests.[pP][sS]1" + ], "markdownDescription": "Specify an array of [Glob Patterns](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) of Pester test files for the adapter to scan, relative to your workspace. This is useful if you want to limit what test files or scanned, or you want to use a different test format than `.tests.ps1`. You must specify files, so if you want to include an entire folder, add a wildcard, for instance `Tests\\*.Tests.ps1`. **This is case sensitive!** Here is a case insensitive example: `[tT]ests\\*.[tT]ests.[pP][sS]1`" }, "pester.hideSkippedBecauseMessages": { diff --git a/src/dotnetNamedPipeServer.ts b/src/dotnetNamedPipeServer.ts index f7dc539a..deb76987 100644 --- a/src/dotnetNamedPipeServer.ts +++ b/src/dotnetNamedPipeServer.ts @@ -46,7 +46,7 @@ export class DotnetNamedPipeServer implements Disposable { } else { // Windows uses NamedPipes where non-Windows platforms use Unix Domain Sockets. // This requires connecting to the pipe file in different locations on Windows vs non-Windows. - return join(tmpdir(), pipeName) + return join(tmpdir(), `CoreFxPipe_${pipeName}`) } }