Skip to content

Commit d779553

Browse files
Kapil Borledaviwil
Kapil Borle
authored andcommitted
Separate test task in build script into separate components
1 parent 0723cce commit d779553

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

PowerShellEditorServices.build.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if ($PSVersionTable.PSEdition -ne "Core") {
1818
Add-Type -Assembly System.IO.Compression.FileSystem
1919
}
2020

21-
task SetupDotNet -Before Restore, Clean, Build, Test, TestPowerShellApi, PackageNuGet {
21+
task SetupDotNet -Before Restore, Clean, Build, TestHost, TestServer, TestProtocol, TestPowerShellApi, PackageNuGet {
2222

2323
$requiredSdkVersion = "1.0.0"
2424

@@ -157,9 +157,17 @@ function UploadTestLogs {
157157
}
158158
}
159159

160-
task Test -If { !$script:IsUnix } {
160+
task Test TestServer,TestProtocol,TestHost
161+
162+
task TestServer -If { !$script:IsUnix } {
161163
exec { & $script:dotnetExe test -c $Configuration -f net452 .\test\PowerShellEditorServices.Test\PowerShellEditorServices.Test.csproj }
164+
}
165+
166+
task TestProtocol -If { !$script:IsUnix} {
162167
exec { & $script:dotnetExe test -c $Configuration -f net452 .\test\PowerShellEditorServices.Test.Protocol\PowerShellEditorServices.Test.Protocol.csproj }
168+
}
169+
170+
task TestHost -If { !$script:IsUnix} {
163171
exec { & $script:dotnetExe test -c $Configuration -f net452 .\test\PowerShellEditorServices.Test.Host\PowerShellEditorServices.Test.Host.csproj }
164172
}
165173

0 commit comments

Comments
 (0)