Skip to content

Commit 78ea845

Browse files
Update test dependencies and use Microsoft.Testing.Platform
1 parent 305f953 commit 78ea845

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Test Matchmaker
3131
shell: pwsh
3232
run: |
33-
dotnet test Matchmaker.slnx -c Release /p:ContinuousIntegrationBuild=true
33+
dotnet test -c Release /p:ContinuousIntegrationBuild=true
3434
3535
- name: Pack Matchmaker
3636
shell: pwsh

Matchmaker.Tests/Matchmaker.Tests.csproj

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@
22

33
<PropertyGroup>
44
<OutputType>exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<Nullable>disable</Nullable>
77
<IsPackable>false</IsPackable>
88
<IsTestProject>true</IsTestProject>
99
<RootNamespace>Matchmaker</RootNamespace>
1010
<NoWarn>$(NoWarn);1701;1702;1718;CA1822;CA2012</NoWarn>
1111
</PropertyGroup>
1212

13+
<PropertyGroup>
14+
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
15+
</PropertyGroup>
16+
1317
<ItemGroup>
14-
<PackageReference Include="FsCheck" Version="3.3.0" />
15-
<PackageReference Include="FsCheck.Xunit.v3" Version="3.3.0" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
17-
<PackageReference Include="System.Interactive" Version="6.0.1" />
18-
<PackageReference Include="System.Interactive.Async" Version="6.0.1" />
19-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.1">
20-
<PrivateAssets>all</PrivateAssets>
21-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
22-
</PackageReference>
23-
<PackageReference Include="xunit.v3" Version="2.0.3" />
18+
<PackageReference Include="FsCheck" Version="3.3.2" />
19+
<PackageReference Include="FsCheck.Xunit.v3" Version="3.3.2" />
20+
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0" />
21+
<PackageReference Include="System.Interactive" Version="6.0.3" />
22+
<PackageReference Include="xunit.v3.mtp-v2" Version="3.2.0" />
2423
</ItemGroup>
2524

2625
<ItemGroup>

Matchmaker.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<File Path=".gitignore" />
3232
<File Path="CHANGELOG.md" />
3333
<File Path="Directory.Build.props" />
34+
<File Path="global.json" />
3435
<File Path="LICENSE" />
3536
<File Path="README.md" />
3637
</Folder>

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"test": {
3+
"runner": "Microsoft.Testing.Platform"
4+
}
5+
}

0 commit comments

Comments
 (0)