Skip to content

Commit 2810c64

Browse files
Test only pester for now (#1003)
1 parent ee812e3 commit 2810c64

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

NuGet.Config

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<add key="disableSourceControlIntegration" value="true" />
55
</solution>
66
<packageSources>
7-
<add key="nuget.org" value="https://www.myget.org/F/omnisharp/api/v3/index.json" protocolVersion="3" />
7+
<add key="omnisharp" value="https://www.myget.org/F/omnisharp/api/v3/index.json" protocolVersion="3" />
8+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
89
</packageSources>
910
</configuration>

PowerShellEditorServices.build.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ function DotNetTestFilter {
353353
if ($TestFilter) { @("--filter",$TestFilter) } else { "" }
354354
}
355355

356-
task Test TestServer,TestProtocol,TestPester
356+
# task Test TestServer,TestProtocol,TestPester
357+
task Test TestPester
357358

358359
task TestServer {
359360
Set-Location .\test\PowerShellEditorServices.Test\

src/PowerShellEditorServices.Protocol/PowerShellEditorServices.Protocol.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<ProjectReference Include="..\PowerShellEditorServices\PowerShellEditorServices.csproj" />
1515
</ItemGroup>
1616
<ItemGroup>
17-
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
17+
<PackageReference Include="Newtonsoft.Json" Version="11.0.0" />
1818
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" PrivateAssets="All" />
1919
<PackageReference Include="System.IO.Pipes.AccessControl" Version="4.5.1" />
2020
</ItemGroup>

test/Pester/EditorServices.Integration.Tests.ps1

-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ function New-TestFile
8888

8989
Describe "Loading and running PowerShellEditorServices" {
9090
BeforeAll {
91-
Import-Module -Force "$PSScriptRoot/../../module/PowerShellEditorServices"
92-
Import-Module -Force "$PSScriptRoot/../../src/PowerShellEditorServices.Engine/bin/Debug/netstandard2.0/publish/Omnisharp.Extensions.LanguageProtocol.dll"
9391
Import-Module -Force "$PSScriptRoot/../../tools/PsesPsClient/out/PsesPsClient"
9492
Import-Module -Force "$PSScriptRoot/../../tools/PsesLogAnalyzer"
9593

tools/PsesPsClient/PsesPsClient.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
8+
<PackageReference Include="Newtonsoft.Json" Version="11.0.0" />
99
<PackageReference Include="System.IO.Pipes" Version="4.3.0" />
1010
</ItemGroup>
1111

tools/PsesPsClient/PsesPsClient.psm1

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
$script:PsesBundledModulesDir = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath(
77
"$PSScriptRoot/../../../../module")
88

9+
Import-Module -Force "$PSScriptRoot/../../../../module/PowerShellEditorServices"
10+
Import-Module -Force (Resolve-Path "$PSScriptRoot/../../../../src/PowerShellEditorServices.Engine/bin/*/netstandard2.0/publish/Omnisharp.Extensions.LanguageProtocol.dll")
11+
912
class PsesStartupOptions
1013
{
1114
[string] $LogPath

0 commit comments

Comments
 (0)