Skip to content

Commit 039f091

Browse files
Use Microsoft.Testing.Platform for running tests
1 parent b112409 commit 039f091

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

SharpHook.Tests/SharpHook.Tests.csproj

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,16 @@
88
<RootNamespace>SharpHook</RootNamespace>
99
</PropertyGroup>
1010

11+
<PropertyGroup>
12+
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
13+
</PropertyGroup>
14+
1115
<ItemGroup>
1216
<PackageReference Include="FsCheck" Version="3.3.2" />
1317
<PackageReference Include="FsCheck.Xunit.v3" Version="3.3.2" />
1418
<PackageReference Include="Microsoft.Extensions.TimeProvider.Testing" Version="10.0.0" />
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
16-
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
17-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18-
<PrivateAssets>all</PrivateAssets>
19-
</PackageReference>
20-
<PackageReference Include="coverlet.collector" Version="6.0.4">
21-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
22-
<PrivateAssets>all</PrivateAssets>
23-
</PackageReference>
24-
<PackageReference Include="xunit.v3" Version="3.2.0" />
19+
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0" />
20+
<PackageReference Include="xunit.v3.mtp-v2" Version="3.2.0" />
2521
</ItemGroup>
2622

2723
<ItemGroup>

SharpHook.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<File Path=".gitmodules" />
3535
<File Path="CHANGELOG.md" />
3636
<File Path="Directory.Build.props" />
37+
<File Path="global.json" />
3738
<File Path="icon.png" />
3839
<File Path="LICENSE" />
3940
<File Path="README.md" />

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)