Skip to content

Commit 366210e

Browse files
committed
Delete dead Test.Host code
One sunny day we will salvage this code to create proper tests for the DAP, etc., but for now this code has been dead over a year and wasted developer time (re)determinig so, as the solution still references it and thus the code is analyzed and presents lots of problems.
1 parent ec76cbd commit 366210e

20 files changed

+1
-1844
lines changed

PowerShellEditorServices.build.ps1

+1-13
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function Install-Dotnet {
103103
Write-Host '.NET installation complete' -ForegroundColor Green
104104
}
105105

106-
task SetupDotNet -Before Clean, Build, TestHost, TestServerWinPS, TestServerPS7, TestServerPS71, TestE2E {
106+
task SetupDotNet -Before Clean, Build, TestServerWinPS, TestServerPS7, TestServerPS71, TestE2E {
107107

108108
$dotnetPath = "$PSScriptRoot/.dotnet"
109109
$dotnetExePath = if ($script:IsUnix) { "$dotnetPath/dotnet" } else { "$dotnetPath/dotnet.exe" }
@@ -275,18 +275,6 @@ task TestServerPS71 {
275275
}
276276
}
277277

278-
task TestHost {
279-
Set-Location .\test\PowerShellEditorServices.Test.Host\
280-
281-
if (-not $script:IsUnix) {
282-
exec { & $script:dotnetExe build -f $script:NetRuntime.Desktop }
283-
exec { & $script:dotnetExe test -f $script:NetRuntime.Desktop (DotNetTestFilter) }
284-
}
285-
286-
exec { & $script:dotnetExe build -c $Configuration -f $script:NetRuntime.PS62 }
287-
exec { & $script:dotnetExe test -f $script:NetRuntime.PS62 (DotNetTestFilter) }
288-
}
289-
290278
task TestE2E {
291279
Set-Location .\test\PowerShellEditorServices.Test.E2E\
292280

PowerShellEditorServices.sln

-21
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F594E7FD-1E7
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{422E561A-8118-4BE7-A54F-9309E4F03AAE}"
99
EndProject
10-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PowerShellEditorServices.Test.Host", "test\PowerShellEditorServices.Test.Host\PowerShellEditorServices.Test.Host.csproj", "{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}"
11-
EndProject
1210
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PowerShellEditorServices.Test", "test\PowerShellEditorServices.Test\PowerShellEditorServices.Test.csproj", "{8ED116F4-9DDF-4C49-AB96-AE462E3D64C3}"
1311
EndProject
1412
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PowerShellEditorServices.Test.Shared", "test\PowerShellEditorServices.Test.Shared\PowerShellEditorServices.Test.Shared.csproj", "{6A20B9E9-DE66-456E-B4F5-ACFD1A95C3CA}"
@@ -39,24 +37,6 @@ Global
3937
Release|x86 = Release|x86
4038
EndGlobalSection
4139
GlobalSection(ProjectConfigurationPlatforms) = postSolution
42-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.CoreCLR|Any CPU.ActiveCfg = Release|Any CPU
43-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.CoreCLR|Any CPU.Build.0 = Release|Any CPU
44-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.CoreCLR|x64.ActiveCfg = Release|Any CPU
45-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.CoreCLR|x64.Build.0 = Release|Any CPU
46-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.CoreCLR|x86.ActiveCfg = Release|Any CPU
47-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.CoreCLR|x86.Build.0 = Release|Any CPU
48-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
49-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Debug|Any CPU.Build.0 = Debug|Any CPU
50-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Debug|x64.ActiveCfg = Debug|Any CPU
51-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Debug|x64.Build.0 = Debug|Any CPU
52-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Debug|x86.ActiveCfg = Debug|Any CPU
53-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Debug|x86.Build.0 = Debug|Any CPU
54-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Release|Any CPU.ActiveCfg = Release|Any CPU
55-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Release|Any CPU.Build.0 = Release|Any CPU
56-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Release|x64.ActiveCfg = Release|Any CPU
57-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Release|x64.Build.0 = Release|Any CPU
58-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Release|x86.ActiveCfg = Release|Any CPU
59-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028}.Release|x86.Build.0 = Release|Any CPU
6040
{8ED116F4-9DDF-4C49-AB96-AE462E3D64C3}.CoreCLR|Any CPU.ActiveCfg = Release|Any CPU
6141
{8ED116F4-9DDF-4C49-AB96-AE462E3D64C3}.CoreCLR|Any CPU.Build.0 = Release|Any CPU
6242
{8ED116F4-9DDF-4C49-AB96-AE462E3D64C3}.CoreCLR|x64.ActiveCfg = Release|Any CPU
@@ -170,7 +150,6 @@ Global
170150
HideSolutionNode = FALSE
171151
EndGlobalSection
172152
GlobalSection(NestedProjects) = preSolution
173-
{3A5DDD20-5BD0-42F4-89F4-ACC0CE554028} = {422E561A-8118-4BE7-A54F-9309E4F03AAE}
174153
{8ED116F4-9DDF-4C49-AB96-AE462E3D64C3} = {422E561A-8118-4BE7-A54F-9309E4F03AAE}
175154
{6A20B9E9-DE66-456E-B4F5-ACFD1A95C3CA} = {422E561A-8118-4BE7-A54F-9309E4F03AAE}
176155
{3B38E8DA-8BFF-4264-AF16-47929E6398A3} = {F594E7FD-1E72-4E51-A496-B019C2BA3180}

test/PowerShellEditorServices.Test.Host/App.config

-6
This file was deleted.

test/PowerShellEditorServices.Test.Host/AssemblyInfo.cs

-9
This file was deleted.

test/PowerShellEditorServices.Test.Host/AttachHelper.cs

-117
This file was deleted.

test/PowerShellEditorServices.Test.Host/DebugAdapterTests.cs

-142
This file was deleted.

0 commit comments

Comments
 (0)