Skip to content

Commit 3237407

Browse files
Evangelinkgfs
andauthored
Migrate to MTP from VSTest (#679)
* Migrate to MTP from VSTest * Update Changelog.md --------- Co-authored-by: Gabe Stocco <[email protected]>
1 parent 064b873 commit 3237407

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.56] - 2025-04-14
8+
## Tests
9+
Migrate to MTP
10+
711
## [1.0.55] - 2025-04-14
812
## Dependencies
913
Updates Dependencies

DevSkim-DotNet/Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
7+
<OutputType>Exe</OutputType>
88
<IsPackable>false</IsPackable>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
13-
<PackageReference Include="MSTest.TestAdapter" Version="3.8.3" />
14-
<PackageReference Include="MSTest.TestFramework" Version="3.8.3" />
12+
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" Version="17.14.2" />
13+
<PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="1.6.3" />
14+
<PackageReference Include="MSTest" Version="3.8.3" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

DevSkim-DotNet/Microsoft.DevSkim.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DevSkim.LanguageP
1616
EndProject
1717
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.DevSkim.VisualStudio.SourceGenerator", "Microsoft.DevSkim.VisualStudio.SourceGenerator\Microsoft.DevSkim.VisualStudio.SourceGenerator.csproj", "{5D12BB81-B659-4CCB-9FAC-8224A6728196}"
1818
EndProject
19-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManualGenerator", "ManualGenerator\ManualGenerator.csproj", "{C4722145-3CF5-431D-8F47-416F3E6CFB9F}"
19+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManualGenerator", "ManualGenerator\ManualUpdateSettingsGenerator.csproj", "{C4722145-3CF5-431D-8F47-416F3E6CFB9F}"
2020
EndProject
2121
Global
2222
GlobalSection(SolutionConfigurationPlatforms) = preSolution

Directory.Build.props

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,14 @@
66
<PrivateAssets>all</PrivateAssets>
77
</PackageReference>
88
</ItemGroup>
9+
10+
<!-- Testing -->
11+
<PropertyGroup>
12+
<!-- More info about MSTest runner https://learn.microsoft.com/dotnet/core/testing/unit-testing-mstest-runner-intro -->
13+
<EnableMSTestRunner>true</EnableMSTestRunner>
14+
<MSTestAnalysisMode>Recommended</MSTestAnalysisMode>
15+
<!-- More info about dotnet test integration https://learn.microsoft.com/dotnet/core/testing/unit-testing-platform-integration-dotnet-test -->
16+
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
17+
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
18+
</PropertyGroup>
919
</Project>

Pipelines/cli/devskim-cli-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ extends:
4141
poolName: MSSecurity-1ES-Build-Agents-Pool
4242
poolImage: MSSecurity-1ES-Windows-2022
4343
poolOs: windows
44+
dotnetTestArgs: '-- --coverage --report-trx'
4445
- template: dotnet-test-job.yml@templates
4546
parameters:
4647
jobName: 'dotnet_test_ubuntu'
4748
dotnetVersions: ['8.0.x','9.0.x']
4849
poolName: MSSecurity-1ES-Build-Agents-Pool
4950
poolImage: MSSecurity-1ES-Ubuntu-2204
5051
poolOs: linux
51-
projectPath: 'DevSkim-DotNet/Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj'
52+
projectPath: 'DevSkim-DotNet/Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj'
53+
dotnetTestArgs: '-- --coverage --report-trx'
5254
- stage: Build
5355
dependsOn:
5456
- Test

Pipelines/cli/devskim-cli-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extends:
4040
poolName: MSSecurity-1ES-Build-Agents-Pool
4141
poolImage: MSSecurity-1ES-Windows-2022
4242
poolOs: windows
43+
dotnetTestArgs: '-- --coverage --report-trx'
4344
- template: dotnet-test-job.yml@templates
4445
parameters:
4546
jobName: 'dotnet_test_ubuntu'
@@ -48,6 +49,7 @@ extends:
4849
poolImage: MSSecurity-1ES-Ubuntu-2204
4950
poolOs: linux
5051
projectPath: 'DevSkim-DotNet/Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj'
52+
dotnetTestArgs: '-- --coverage --report-trx'
5153

5254
- stage: Build
5355
dependsOn:

0 commit comments

Comments
 (0)