Skip to content

Commit

Permalink
Multiple updates for build tools. (Azure#3839)
Browse files Browse the repository at this point in the history
* Removing duplicate references. Making test class from internal to public. Updating common references. Misc updates

* skipping two tests that are no longer supported the way they are named by xUnit. These tests will have to be renamed and recorded
  • Loading branch information
shahabhijeet authored Nov 8, 2017
1 parent 99834e2 commit 74d8bc4
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 48 deletions.
1 change: 0 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<SdkBuildToolsDir>$(LibraryToolsFolder)\SdkBuildTools</SdkBuildToolsDir>
<NugetPackageName/>
<ImportDirectoryBuildTargets>true</ImportDirectoryBuildTargets>
<DefaultPathTokenToIgnore>$(IgnorePathTokens) Microsoft.Azure.KeyVault.Samples Gallery Intune AzureBatchFileConventions.IntegrationTests Batch.FileStaging.Tests Azure.Batch.IntegrationTests Azure.Batch.ProtocolTests</DefaultPathTokenToIgnore>
</PropertyGroup>
<PropertyGroup>
<CIToolsPath>$(OnPremiseBuildTasks)</CIToolsPath>
Expand Down
10 changes: 5 additions & 5 deletions src/SDKs/Dns/Dns.Tests/ScenarioTests/RecordSetScenarioTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,16 +466,16 @@ public void ListRecordsInZoneAcrossTypes()
ListRecordsInZone(isCrossType: true);
}

[Fact]
[Fact(Skip = "needs re-recording. XUnit released version will not support overloaded test names")]
public void ListRecordsInZoneWithSuffixAcrossTypes()
{
ListRecordsInZoneWithSuffix(isCrossType: true);
ListRecordsInZoneWithSuffixCrossType(isCrossType: true);
}

[Fact]
[Fact(Skip ="needs re-recording. XUnit released version will not support overloaded test names")]
public void ListRecordsInZoneWithSuffix()
{
ListRecordsInZoneWithSuffix(isCrossType: false);
ListRecordsInZoneWithSuffixCrossType(isCrossType: false);
}


Expand Down Expand Up @@ -562,7 +562,7 @@ [System.Runtime.CompilerServices.CallerMemberName] string methodName
recordSetNames);
}
}
private void ListRecordsInZoneWithSuffix(
private void ListRecordsInZoneWithSuffixCrossType(
bool isCrossType,
[System.Runtime.CompilerServices.CallerMemberName] string methodName
= "testframework_failed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace Microsoft.Rest.ClientRuntime.Tracing.Tests
{
internal class EtwTracingInterceptorTest : IDisposable
public class EtwTracingInterceptorTest : IDisposable
{
// Globally defined session is needed since we are running multiple traces
private readonly TraceEventSession _eventSession;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<!--<Import Project="$([MSBuild]::GetPathOfFileAbove('test.props'))" />-->
<Import Project="$([MSBuild]::GetPathOfFileAbove('CR.test.reference.props'))" />
<PropertyGroup>
<PackageId>Microsoft.Rest.ClientRuntime.Tracing.Tests</PackageId>
Expand All @@ -16,28 +15,15 @@
<Reference Include="System.Net" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http.WebRequest" />

<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="1.0.41" />


<!--<ProjectReference Include="..\..\ClientRuntime\ClientRuntime\Microsoft.Rest.ClientRuntime.csproj" />-->

<ProjectReference Include="..\..\ClientRuntime.Etw\Microsoft.Rest.ClientRuntime.Etw.csproj" />
<ProjectReference Include="..\..\ClientRuntime.Log4Net\Microsoft.Rest.ClientRuntime.Log4Net.csproj" />

</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)'=='net452' ">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<ProjectReference Include="..\..\ClientRuntime.Log4Net\Microsoft.Rest.ClientRuntime.Log4Net.csproj" />
</ItemGroup>

<!--Do not remove until VS Test Tools fixes #472-->
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

<!--<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="[2.3.6,3.0)" />
<PackageReference Include="Microsoft.Rest.ClientRuntime.Log4Net" Version="[2.1.3,3.0)" />
<PackageReference Include="Microsoft.Rest.ClientRuntime.Etw" Version="[2.1.2,3.0)" />-->

41 changes: 18 additions & 23 deletions test.props
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<RestorePackagesPath>$(LibraryNugetPackageFolder)</RestorePackagesPath>
<NugetCommonProfileTags/>
<PackageOutputPath>$(BuiltPackageOutputDir)</PackageOutputPath>
<AddProjectReferenceForDebuggingPurpose>false</AddProjectReferenceForDebuggingPurpose>
<AddNugetReferenceForCIandCmdlineBuild>true</AddNugetReferenceForCIandCmdlineBuild>
<SkipBuildingTestProject>false</SkipBuildingTestProject>
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>$(LibraryToolsFolder)\MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">
<PackageReference Include="xunit" Version="2.3.0-beta1-build3642" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0-beta1-build1309" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0-preview-20170106-08" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<RestorePackagesPath>$(LibraryNugetPackageFolder)</RestorePackagesPath>
<NugetCommonProfileTags/>
<PackageOutputPath>$(BuiltPackageOutputDir)</PackageOutputPath>
<AddProjectReferenceForDebuggingPurpose>false</AddProjectReferenceForDebuggingPurpose>
<AddNugetReferenceForCIandCmdlineBuild>true</AddNugetReferenceForCIandCmdlineBuild>
<SkipBuildingTestProject>false</SkipBuildingTestProject>
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>$(LibraryToolsFolder)\MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)'=='net452' ">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile Include="$(LibraryToolsFolder)\DisableTestRunParallel.cs" Link="DisableTestRunParallel.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion tools/bootstrapTools/bootstrap.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</Target>

<Target Name="Init" DependsOnTargets="GetLatestBuildTools">
<Message Importance="high" Text="Default target only updates build tools. Please execute specific target to complete you build process (e.g. msbuild build.proj /t:RunTests /p:Scope=SDKs\Compute)"/>
<Message Importance="high" Text="Build tools update complete. Please execute specific target to complete you build process (e.g. msbuild build.proj /t:RunTests /p:Scope=SDKs\Compute)"/>
</Target>
</Project>

0 comments on commit 74d8bc4

Please sign in to comment.