Skip to content

Commit 67e649b

Browse files
committed
Centralize testing platform related properties
1 parent 17de1ba commit 67e649b

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<NoWarn>S125;CA1848;CA1002;CA1515;S1118</NoWarn>
1919
</PropertyGroup>
2020
<PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
21+
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
22+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
23+
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
24+
<TestingPlatformCaptureOutput>true</TestingPlatformCaptureOutput>
2125
<NoWarn>$(NoWarn);CA5394;CA1707</NoWarn>
2226
</PropertyGroup>
2327
<ItemGroup>

tests/ArchitectureTests/ArchitectureTests.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<IsPackable>false</IsPackable>
4-
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
5-
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
6-
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
74
</PropertyGroup>
85
<ItemGroup>
96
<ProjectReference Include="..\..\src\Api\Api.csproj" />

tests/IntegrationTests/IntegrationTests.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<IsPackable>false</IsPackable>
4-
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
5-
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
6-
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
74
</PropertyGroup>
85
<ItemGroup>
96
<ProjectReference Include="..\..\src\Api\Api.csproj" />

tests/UnitTests/UnitTests.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<IsPackable>false</IsPackable>
4-
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
5-
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
6-
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
74
</PropertyGroup>
85
<ItemGroup>
96
<ProjectReference Include="..\..\src\Services\Services.csproj" />

0 commit comments

Comments
 (0)