Skip to content

Commit 2952869

Browse files
committed
Switch from VSTest to Microsoft.Testing.Platform
Loosing GitHubActionsTestLogger, but test results are handled by the dorny/test-reporter action. Loosing the HTML report. Again, test results are handled by the dorny/test-reporter action. This also fixes the [duplicate tests in Rider][1] issue. [1]: https://youtrack.jetbrains.com/issue/RIDER-121579
1 parent 1188a7a commit 2952869

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ jobs:
4848
with:
4949
name: Received-${{ runner.os }}
5050
path: "**/*.received.*"
51-
- name: 📤 Upload test results
52-
uses: actions/upload-artifact@v4
53-
if: always()
54-
with:
55-
name: TestResults (${{ runner.os }})
56-
path: TestResults-*.html
5751
- name: 📊 Test Report
5852
uses: dorny/test-reporter@v1
5953
if: always()

tests/Chisel.Tests/Chisel.Tests.csproj

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,29 @@
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
5+
<OutputType>exe</OutputType>
56
<Nullable>enable</Nullable>
6-
<IsPackable>false</IsPackable>
7+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
78
</PropertyGroup>
89

910
<ItemGroup>
1011
<PackageReference Include="AwesomeAssertions" Version="8.1.0" />
1112
<PackageReference Include="CliWrap" Version="3.8.2" />
12-
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" PrivateAssets="all" />
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
13+
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.6.3" />
1414
<PackageReference Include="NuGet.ProjectModel" Version="6.13.2" />
1515
<PackageReference Include="PublicApiGenerator" Version="11.4.6" />
1616
<PackageReference Include="System.Text.Json" Version="9.0.4" />
1717
<PackageReference Include="Verify.XunitV3" Version="30.0.0" />
1818
<PackageReference Include="xunit.v3" Version="2.0.2" />
1919
<PackageReference Include="Xunit.Combinatorial" Version="2.0.24" />
20-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.0" PrivateAssets="all" />
2120
</ItemGroup>
2221

2322
<ItemGroup>
2423
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
2524
</ItemGroup>
2625

27-
<ItemGroup>
28-
<VSTestLogger Include="GitHubActions" Visible="false" />
29-
<VSTestLogger Include="trx%3BLogFileName=TestResults-$(TargetFramework).trx" Visible="false" />
30-
<VSTestLogger Include="html%3BLogFileName=TestResults-$(TargetFramework).html" Visible="false" />
31-
</ItemGroup>
32-
3326
<PropertyGroup Condition="$(ContinuousIntegrationBuild) == 'true'">
34-
<VSTestResultsDirectory>$([MSBuild]::NormalizePath('$(MSBuildProjectDirectory)', '..', '..'))</VSTestResultsDirectory>
35-
<VSTestLogger>@(VSTestLogger)</VSTestLogger>
27+
<TestingPlatformCommandLineArguments>--report-trx --report-trx-filename TestResults-$(TargetFramework).trx --results-directory $([MSBuild]::NormalizePath('$(MSBuildProjectDirectory)', '..', '..'))</TestingPlatformCommandLineArguments>
3628
</PropertyGroup>
3729

3830
<ItemGroup>

0 commit comments

Comments
 (0)