Skip to content

Commit fc60449

Browse files
committed
Updates to automate testing end-to-end
1 parent 7226b58 commit fc60449

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Azure PowerShell specific
2+
Net472Tests/
23
artifacts/
34
src/Stack/
45
src/local-artifacts/*

build.proj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,11 @@
433433
<Exec Command="dotnet sln Azure.PowerShell.sln add $(LibraryRoot)tools/ScenarioTest.ResourceManager/ScenarioTest.ResourceManager.csproj $(LibraryRoot)tools/TestFx/TestFx.csproj" />
434434
<!-- https://github.com/Microsoft/msbuild/issues/3157#issuecomment-378002971 -->
435435
<!-- https://github.com/xunit/xunit/issues/1154#issuecomment-405366373 -->
436-
<Exec Command="dotnet build Azure.PowerShell.sln --configuration $(Configuration) --framework netstandard2.0" />
437-
436+
<Exec Command="dotnet build Azure.PowerShell.sln --configuration $(Configuration)" />
437+
<Exec Command="dotnet new console -n Net472Tests" />
438+
<Exec Command="dotnet add Net472Tests package xunit.runner.console --version 2.4.0" />
439+
<Exec Command="dotnet restore --packages ./artifacts/tools -f --no-cache Net472Tests" />
440+
<Exec Command="$(PowerShellCommandPrefix) &quot;$(LibraryToolsFolder)/TestNet472Modules.ps1 -TestExecPath '$(LibraryArtifactsFolder)/tools/xunit.runner.console/2.4.0/tools/net472/xunit.console.exe' &quot;" />
438441
<OnError ExecuteTargets="TestFailureErrorMessage" />
439442
</Target>
440443

0 commit comments

Comments
 (0)