WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 8c42a2b

Browse files
committed
Upgrade to Microsoft.Testing.Platform
1 parent 9639f59 commit 8c42a2b

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Tests/Verify.Nupkg.Tests/Verify.Nupkg.Tests.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="MSTest.Sdk">
22

33
<PropertyGroup>
44
<!-- Limit .NET Framework tests to Windows build / test machines -->
@@ -10,12 +10,10 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="FluentAssertions" Version="7.2.0" />
13-
<PackageReference Include="MSTest" Version="3.7.3" />
1413
<PackageReference Include="MSBuild.ProjectCreation" Version="14.0.5" />
1514
<PackageReference Include="TestableIO.System.IO.Abstractions.Extensions" Version="22.0.3" />
1615
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="22.0.11" />
1716
<PackageReference Include="Verify.MSTest" Version="24.3.0-beta.4" /><!-- Testing MSTest source generator -->
18-
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all" />
1917
<PackageReference Include="GetPackFromProject" Version="1.0.10" PrivateAssets="all" />
2018
<ProjectReference Include="..\..\Verify.Nupkg\Verify.Nupkg.csproj" AddPackageAsOutput="true" />
2119
</ItemGroup>

eng/targets/TestProjects.targets

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
<When Condition="'$(IsTestProject)' == 'true'">
44

55
<PropertyGroup>
6+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
7+
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
8+
69
<!-- Enable test logging to TRX files and place them in the artifacts directory -->
7-
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
8-
<VSTestResultsDirectory Condition="'$(VSTestResultsDirectory)' == ''">$(ArtifactsTestResultsPath)/$(TargetFramework)</VSTestResultsDirectory>
10+
<TestingPlatformCommandLineArguments>--report-trx --results-directory $(ArtifactsTestResultsPath)/$(TargetFramework)</TestingPlatformCommandLineArguments>
11+
12+
<!-- TODO: Fix Microsoft.Extensions.DependencyModel version conflict -->
13+
<EnableMicrosoftTestingExtensionsCodeCoverage>false</EnableMicrosoftTestingExtensionsCodeCoverage>
914
</PropertyGroup>
1015

1116
</When>

global.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"rollForward": "feature"
55
},
66
"msbuild-sdks": {
7-
"Microsoft.Build.Traversal": "4.1.82"
7+
"Microsoft.Build.Traversal": "4.1.82",
8+
"MSTest.Sdk": "3.7.3"
89
}
910
}

0 commit comments

Comments
 (0)