Skip to content

Commit 2701ef0

Browse files
committed
Merge pull request #1 from Azure/dev
Sync upstream
2 parents d3ed64e + ee88241 commit 2701ef0

File tree

978 files changed

+25783
-10179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

978 files changed

+25783
-10179
lines changed

AzurePowershell.Test.targets

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<XUnitTests Include=".\src\ResourceManager\ApiManagement\Commands.ApiManagement.Test\bin\Debug\Microsoft.Azure.Commands.ApiManagement.Test.dll"/>
8585
<XUnitTests Include=".\src\ResourceManager\Profile\Commands.Profile.Test\bin\Debug\Microsoft.Azure.Commands.Profile.Test.dll"/>
8686
<XUnitTests Include=".\src\ResourceManager\AzureBackup\Commands.AzureBackup.Test\bin\Debug\Microsoft.Azure.Commands.AzureBackup.Test.dll"/>
87-
<XUnitTests Include=".\src\ResourceManager\NotificationHubs\Commands.NotificationHubs.Test\bin\Debug\Microsoft.Azure.Commands.NotificationHubs.Test.dll"/>
87+
<XUnitTests Include=".\src\ResourceManager\NotificationHubs\Commands.NotificationHubs.Test\bin\Debug\Microsoft.Azure.Commands.NotificationHubs.Test.dll"/>
8888
<XUnitTests Include="@(AsmXUnitTests)"/>
8989
</ItemGroup>
9090
<ItemGroup Condition=" '$(scope)' == 'ServiceManagement' ">
@@ -98,19 +98,37 @@
9898
<Target Name="InvokeXUnit" DependsOnTargets="DeclareXunitTests">
9999
<Message Importance="high" Text="Running XUnit tests" />
100100
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
101-
<Exec
102-
Command="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe &quot;%(XUnitTests.Identity)&quot; -parallel none -maxthreads 0 -trait &quot;AcceptanceType=CheckIn&quot; -html &quot;$(TestOutputDirectory)\%(XUnitTests.Filename).html&quot;"
103-
Timeout="$(TestTimeout)" ContinueOnError="false" Condition=" @(XUnitTests) != '' "/>
104-
<OnError ExecuteTargets="TimeoutErrorHandler"/>
101+
102+
<xunit
103+
Assemblies="@(XUnitTests)"
104+
AppDomains="true"
105+
ShadowCopy="false"
106+
ParallelizeTestCollections="false"
107+
ParallelizeAssemblies="true"
108+
IncludeTraits="AcceptanceType=CheckIn"
109+
Html="$(TestOutputDirectory)\AzurePowershellTestResults.html"
110+
MaxParallelThreads="10"
111+
DiagnosticMessages="false"
112+
ContinueOnError="false"
113+
Condition=" @(XUnitTests) != '' "/>
105114
</Target>
106115

107116
<Target Name="InvokeXUnitAll" DependsOnTargets="DeclareXunitTests">
108117
<Message Importance="high" Text="Running XUnit tests" />
109118
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
110-
<Exec
111-
Command="$(MSBuildProjectDirectory)\packages\xunit.runner.console.2.0.0\tools\xunit.console.x86.exe &quot;%(XUnitTests.Identity)&quot; -notrait &quot;RunType=LiveOnly&quot; -html &quot;$(TestOutputDirectory)\%(XUnitTests.Filename).html&quot;"
112-
Timeout="$(TestTimeout)" ContinueOnError="false"/>
113-
<OnError ExecuteTargets="TimeoutErrorHandler"/>
119+
120+
<xunit
121+
Assemblies="@(XUnitTests)"
122+
AppDomains="true"
123+
ShadowCopy="false"
124+
ParallelizeTestCollections="false"
125+
ParallelizeAssemblies="true"
126+
ExcludeTraits="RunType=LiveOnly"
127+
Html="$(TestOutputDirectory)\AzurePowershellAllTestResults.html"
128+
MaxParallelThreads="10"
129+
DiagnosticMessages="false"
130+
ContinueOnError="false"
131+
Condition=" @(XUnitTests) != '' "/>
114132
</Target>
115133

116134
<Target Name="TimeoutErrorHandler">
@@ -458,7 +476,7 @@
458476

459477
<Target Name="LiveTests">
460478
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
461-
<Exec Command="packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe @(LiveTestDlls) /trait &quot;AcceptanceType=LiveBVT&quot; /html &quot;$(TestOutputDirectory)\Live.%(Filename).html&quot;" />
479+
<Exec Command="packages\xunit.runner.console.2.1.0\tools\xunit.console.x86.exe @(LiveTestDlls) /trait &quot;AcceptanceType=LiveBVT&quot; /html &quot;$(TestOutputDirectory)\Live.%(Filename).html&quot;" />
462480
</Target>
463481

464482

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<Import Condition=" $(OnPremiseBuild) " Project="$(CIToolsPath)\Microsoft.WindowsAzure.Build.OnPremise.msbuild" />
7171

7272
<UsingTask
73-
AssemblyFile="$(MSBuildProjectDirectory)\src\packages\xunit.MSBuild.2.0.0.0\tools\xunit.runner.msbuild.dll"
73+
AssemblyFile="$(MSBuildProjectDirectory)\packages\xunit.runner.msbuild.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll"
7474
TaskName="Xunit.Runner.MSBuild.xunit" />
7575

7676
<!-- Clean the build in all configurations -->

packages.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="xunit.runner.console" version="2.0.0" />
4-
<package id="xunit.runners" version="1.9.2" />
3+
<package id="xunit.runner.console" version="2.1.0" />
4+
<package id="xunit.runner.msbuild" version="2.1.0" />
55
</packages>

0 commit comments

Comments
 (0)