Skip to content

Commit

Permalink
Apply xunit configuration to all tests for better test failure diagno…
Browse files Browse the repository at this point in the history
…stics
  • Loading branch information
tmat committed Nov 16, 2024
1 parent 07b7c9e commit 7ff49d9
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 19 deletions.
3 changes: 3 additions & 0 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@
<Using Include="Xunit.Abstractions" />
</ItemGroup>

<ItemGroup>
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion test/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ namespace Microsoft.DotNet.Cli.New.IntegrationTests

<ItemGroup>
<Content Include="TestTemplates\**\*" Exclude="TestTemplates\**\bin\**;TestTemplates\**\obj\**" CopyToOutputDirectory="PreserveNewest" />
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 0 additions & 5 deletions test/dotnet-new.Tests/xunit.runner.json

This file was deleted.

3 changes: 0 additions & 3 deletions test/dotnet-watch.Tests/dotnet-watch.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<Compile Include="..\..\src\Tasks\Microsoft.NET.Build.Tasks.UnitTests\Mocks\MockBuildEngine.cs" Link="Utilities\MockBuildEngine.cs" />
<Compile Include="..\..\src\Tasks\Microsoft.NET.Build.Tasks.UnitTests\Mocks\MockTaskItem.cs" Link="Utilities\MockTaskItem.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(RepoRoot)\src\BuiltInTools\dotnet-watch\dotnet-watch.csproj" />
<ProjectReference Include="$(RepoRoot)\src\BuiltInTools\DotNetWatchTasks\DotNetWatchTasks.csproj" />
Expand Down
4 changes: 0 additions & 4 deletions test/dotnet.Tests/dotnet.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@
<PackageReference Include="Microsoft.DotNet.Installer.Windows.Security.TestData" GeneratePathProperty="true" />
</ItemGroup>

<ItemGroup>
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<!-- Global usings -->
<!-- See: https://learn.microsoft.com/dotnet/core/project-sdk/msbuild-props#using -->
<ItemGroup>
Expand Down
6 changes: 0 additions & 6 deletions test/dotnet.Tests/xunit.runner.json

This file was deleted.

File renamed without changes.

0 comments on commit 7ff49d9

Please sign in to comment.