Skip to content

Commit 8e7d472

Browse files
committed
Apply xunit configuration to all tests for better test failure diagnostics
1 parent 3254357 commit 8e7d472

File tree

7 files changed

+3
-19
lines changed

7 files changed

+3
-19
lines changed

test/Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@
3838
<Using Include="Xunit.Abstractions" />
3939
</ItemGroup>
4040

41+
<ItemGroup>
42+
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
43+
</ItemGroup>
4144
</Project>

test/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ namespace Microsoft.DotNet.Cli.New.IntegrationTests
7676

7777
<ItemGroup>
7878
<Content Include="TestTemplates\**\*" Exclude="TestTemplates\**\bin\**;TestTemplates\**\obj\**" CopyToOutputDirectory="PreserveNewest" />
79-
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
8079
</ItemGroup>
8180

8281
<ItemGroup>

test/dotnet-new.Tests/xunit.runner.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/dotnet-watch.Tests/dotnet-watch.Tests.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
<Compile Include="..\..\src\Tasks\Microsoft.NET.Build.Tasks.UnitTests\Mocks\MockBuildEngine.cs" Link="Utilities\MockBuildEngine.cs" />
1010
<Compile Include="..\..\src\Tasks\Microsoft.NET.Build.Tasks.UnitTests\Mocks\MockTaskItem.cs" Link="Utilities\MockTaskItem.cs" />
1111
</ItemGroup>
12-
<ItemGroup>
13-
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
14-
</ItemGroup>
1512
<ItemGroup>
1613
<ProjectReference Include="$(RepoRoot)\src\BuiltInTools\dotnet-watch\dotnet-watch.csproj" />
1714
<ProjectReference Include="$(RepoRoot)\src\BuiltInTools\DotNetWatchTasks\DotNetWatchTasks.csproj" />

test/dotnet.Tests/dotnet.Tests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@
125125
<PackageReference Include="Microsoft.DotNet.Installer.Windows.Security.TestData" GeneratePathProperty="true" />
126126
</ItemGroup>
127127

128-
<ItemGroup>
129-
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
130-
</ItemGroup>
131-
132128
<!-- Global usings -->
133129
<!-- See: https://learn.microsoft.com/dotnet/core/project-sdk/msbuild-props#using -->
134130
<ItemGroup>

test/dotnet.Tests/xunit.runner.json

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)