Skip to content

Commit

Permalink
Support specify test project via testscope option. (#4874)
Browse files Browse the repository at this point in the history
  • Loading branch information
imcarolwang authored Aug 15, 2022
1 parent ecd0022 commit 743e68c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ foreach ($argument in $PSBoundParameters.Keys)
"allconfigurations" { $arguments += " /p:BuildAllConfigurations=true" }
"arch" { $arguments += " /p:ArchGroup=$($PSBoundParameters[$argument]) /p:TargetArchitecture=$($PSBoundParameters[$argument])" }
"properties" { $arguments += " " + $properties }
"testscope" { if ($testscope -eq "outerloop" -or $testscope -eq "all") { $arguments += " /p:IntegrationTest=true" }}
"testscope"
{
if ($testscope -eq "outerloop" -or $testscope -eq "all") { $arguments += " /p:IntegrationTest=true" }
if ($testscope -eq "wcf") { $arguments += " -projects System.ServiceModel.sln /p:IntegrationTest=true" }
if ($testscope -eq "svcutil") { $arguments += " -projects dotnet-svcutil.sln /p:IntegrationTest=true" }
}
default { $arguments += " /p:$argument=$($PSBoundParameters[$argument])" }
}
}
Expand Down

0 comments on commit 743e68c

Please sign in to comment.