Skip to content

Commit 8f31404

Browse files
committed
Migrate repo from VSTest to Microsoft.Testing.Platform
1 parent 67c676c commit 8f31404

File tree

17 files changed

+23
-19
lines changed

17 files changed

+23
-19
lines changed

.github/workflows/ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
# Run tests
6666
- name: Test solution
67-
run: dotnet test --no-build -c ${{matrix.configuration}} -l "console;verbosity=detailed"
67+
run: dotnet test --no-build -c ${{matrix.configuration}} --no-progress
6868

6969
# Pack solution
7070
- name: Pack solution

.runsettings

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<RunSettings>
22
<MSTest>
3-
<MaxCpuCount>0</MaxCpuCount>
43
<Parallelize>
54
<Workers>0</Workers>
65
<Scope>ClassLevel</Scope>
76
</Parallelize>
87
</MSTest>
9-
</RunSettings>
8+
</RunSettings>

Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<PropertyGroup>
44
<RepositoryDirectory>$(MSBuildThisFileDirectory)</RepositoryDirectory>
55
<BuildToolsDirectory>$(RepositoryDirectory)build\</BuildToolsDirectory>
6+
7+
<EnableMSTestRunner>true</EnableMSTestRunner>
68
</PropertyGroup>
79

810
<Import Project="$(BuildToolsDirectory)Community.Toolkit.Common.props" />
@@ -44,4 +46,4 @@
4446
</When>
4547
</Choose>
4648

47-
</Project>
49+
</Project>

global.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"sdk": {
3-
"version": "10.0.101",
3+
"version": "10.0.103",
44
"rollForward": "latestFeature",
55
"allowPrerelease": false
6+
},
7+
"test": {
8+
"runner": "Microsoft.Testing.Platform"
69
}
7-
}
10+
}

tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net472;net8.0;net9.0;net10.0</TargetFrameworks>
5+
<OutputType>Exe</OutputType>
56
</PropertyGroup>
67

78
<ItemGroup>
89
<PackageReference Include="MSTest.TestAdapter" Version="4.0.1" />
910
<PackageReference Include="MSTest.TestFramework" Version="4.0.1" />
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net472;net8.0;net9.0;net10.0</TargetFrameworks>
5+
<OutputType>Exe</OutputType>
56
</PropertyGroup>
67

78
<ItemGroup>
89
<PackageReference Include="MSTest.TestAdapter" Version="4.0.1" />
910
<PackageReference Include="MSTest.TestFramework" Version="4.0.1" />
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFrameworks>net472;net8.0;net9.0;net10.0</TargetFrameworks>
55
<EnablePreviewFeatures>true</EnablePreviewFeatures>
66
<NoWarn>$(NoWarn);CA2252</NoWarn>
7+
<OutputType>Exe</OutputType>
78
</PropertyGroup>
89

910
<ItemGroup>
@@ -13,7 +14,6 @@
1314
<ItemGroup>
1415
<PackageReference Include="MSTest.TestAdapter" Version="4.0.1" />
1516
<PackageReference Include="MSTest.TestFramework" Version="4.0.1" />
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1717
</ItemGroup>
1818

1919
</Project>

tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net472;net8.0;net9.0;net10.0</TargetFrameworks>
5+
<OutputType>Exe</OutputType>
56
</PropertyGroup>
67

78
<ItemGroup>
89
<PackageReference Include="MSTest.TestAdapter" Version="4.0.1" />
910
<PackageReference Include="MSTest.TestFramework" Version="4.0.1" />
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net472;net8.0;net9.0;net10.0</TargetFrameworks>
5+
<OutputType>Exe</OutputType>
56
</PropertyGroup>
67

78
<ItemGroup>
89
<PackageReference Include="MSTest.TestAdapter" Version="4.0.1" />
910
<PackageReference Include="MSTest.TestFramework" Version="4.0.1" />
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

tests/CommunityToolkit.Mvvm.Roslyn4001.UnitTests/CommunityToolkit.Mvvm.Roslyn4001.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<PropertyGroup>
44
<TargetFrameworks>net472;net8.0;net9.0;net10.0</TargetFrameworks>
55
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
6+
<OutputType>Exe</OutputType>
67
</PropertyGroup>
78

89
<ItemGroup>
910
<PackageReference Include="Dbs.Signed3.Nito.AsyncEx.Context" Version="5.0.0" />
1011
<PackageReference Include="MSTest.TestAdapter" Version="4.0.1" />
1112
<PackageReference Include="MSTest.TestFramework" Version="4.0.1" />
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
1313
<PackageReference Include="System.Reactive" Version="6.1.0" />
1414
<PackageReference Include="System.Text.Json" Version="10.0.1" />
1515
</ItemGroup>

0 commit comments

Comments
 (0)