Skip to content

Commit 5d29972

Browse files
committed
Use new testing platform
1 parent 9400fb7 commit 5d29972

File tree

4 files changed

+3
-29
lines changed

4 files changed

+3
-29
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Build source code
3535
run: dotnet build --configuration Release --no-restore
3636
- name: Test with dotnet
37-
run: dotnet test --configuration Release --no-build --collect="Code Coverage" --framework="net8.0"
37+
run: dotnet test --configuration Release --no-build --framework="net8.0"
3838
- name: Check source file format
3939
run: dotnet format --no-restore --verify-no-changes
4040
continue-on-error: true
@@ -44,10 +44,6 @@ jobs:
4444
with:
4545
name: artifacts
4646
path: ./artifacts
47-
- uses: actions/upload-artifact@v4
48-
with:
49-
name: coverage
50-
path: ./**/TestResults/**/coverage.opencover.xml
5147

5248
testOnSupportedDotnetVersions:
5349
strategy:

test/Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
33
<PropertyGroup>
44
<IsPackable>false</IsPackable>
5-
<RunSettingsFilePath>$(MSBuildThisFileDirectory)/coverlet.runsettings</RunSettingsFilePath>
5+
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
6+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
67
</PropertyGroup>
78

89
<ItemGroup>

test/Directory.Build.targets

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
<Project>
22
<ItemGroup>
3-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
43
<PackageReference Include="xunit.v3" Version="3.2.0" />
5-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
6-
<PrivateAssets>all</PrivateAssets>
7-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
8-
</PackageReference>
9-
<PackageReference Include="coverlet.collector" Version="6.0.3">
10-
<PrivateAssets>all</PrivateAssets>
11-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
12-
</PackageReference>
134
</ItemGroup>
145
</Project>

test/coverlet.runsettings

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

0 commit comments

Comments
 (0)