Skip to content

Commit 9c4114c

Browse files
committed
[WIP] Use xUnit v3 through Microsoft Testing Platform
Does not work yet, see the tunit branch to adapt the tests csproj. > Serilog.Formatting.Log4Net.Tests.csproj(46,5): error : ReportFiles is required
1 parent 8f9c33e commit 9c4114c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/Serilog.Formatting.Log4Net.Tests.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,28 @@
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
5+
<OutputType>Exe</OutputType>
56
<Nullable>enable</Nullable>
67
</PropertyGroup>
78

89
<ItemGroup>
910
<PackageReference Include="AwesomeAssertions" Version="8.1.0" />
1011
<PackageReference Include="coverlet.collector" Version="6.0.4" PrivateAssets="all" />
1112
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" PrivateAssets="all" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
1313
<PackageReference Include="PublicApiGenerator" Version="11.4.5" />
1414
<PackageReference Include="ReportGenerator" Version="5.4.5" PrivateAssets="all" />
1515
<PackageReference Include="Serilog" Version="4.2.0" />
1616
<PackageReference Include="Serilog.Enrichers.Environment" Version="3.0.1" />
1717
<PackageReference Include="Serilog.Enrichers.Thread" Version="4.0.0" />
1818
<PackageReference Include="Verify.XunitV3" Version="29.2.0" />
1919
<PackageReference Include="xunit.v3" Version="2.0.1" />
20-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2" PrivateAssets="all" />
2120
</ItemGroup>
2221

22+
<PropertyGroup Label="xUnit">
23+
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
24+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
25+
</PropertyGroup>
26+
2327
<ItemGroup>
2428
<VSTestLogger Include="GitHubActions%3Bsummary.includePassedTests=true%3Bsummary.includeSkippedTests=true" Visible="false" Condition="$(GITHUB_STEP_SUMMARY) != ''" />
2529
<VSTestLogger Include="trx%3BLogFileName=TestResults-$(TargetFramework).trx" Visible="false" Condition="$(ContinuousIntegrationBuild) == 'true'" />

0 commit comments

Comments
 (0)