Skip to content

Commit d622764

Browse files
Test only pester for now (PowerShell#1003)
1 parent b6d3c9a commit d622764

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
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\
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Microsoft.PowerShell.EditorServices.Hosting
2+
{
3+
public static class BuildInfo
4+
{
5+
public const string BuildVersion = "<development-build>";
6+
public const string BuildOrigin = "<development>";
7+
public static readonly System.DateTime? BuildTime = System.DateTime.Parse("2019-10-03T13:14:51");
8+
}
9+
}

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.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)