Feature: Update the tests to support the Microsoft Testing Platform and update the Unit Test Mode Detector#1454
Conversation
… the Unit Test Mode Detector
There was a problem hiding this comment.
Pull request overview
This pull request adds support for the Microsoft Testing Platform (MTP) as a test runner alongside the existing NUnit framework. The changes include configuration files for MTP, updates to test detection logic, new unit tests, and significant dependency version upgrades.
- Adds MTP configuration via
testconfig.jsonandglobal.jsonfor parallel test execution and code coverage - Updates
DefaultModeDetectorto recognize MTP assemblies as test runners - Upgrades multiple packages to version 10.0.1 and 18.x versions
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/testconfig.json | Configures MTP parallel execution and code coverage settings with module path filters |
| src/global.json | Specifies Microsoft Testing Platform as the test runner |
| src/Splat/ModeDetection/DefaultModeDetector.cs | Adds "MICROSOFT.TESTING.PLATFORM" to the list of recognized test framework markers |
| src/Splat.Tests/ModeDetection/DefaultModeDetectorTests.cs | Adds two new tests to verify MTP detection functionality |
| src/Directory.Packages.props | Updates package versions including Microsoft.Extensions packages, test SDK, and introduces framework-specific versioning logic for System.Runtime.Serialization.Formatters |
| src/Directory.Build.props | Configures MTP support properties and adds testconfig.json to test projects with code coverage package reference |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1454 +/- ##
===========================================
- Coverage 73.27% 41.29% -31.99%
===========================================
Files 108 149 +41
Lines 4345 7822 +3477
Branches 617 844 +227
===========================================
+ Hits 3184 3230 +46
- Misses 963 4408 +3445
+ Partials 198 184 -14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This pull request introduces support for the Microsoft Testing Platform (MTP) as a test runner, updates several test dependencies, and ensures the codebase and tests are compatible with the latest tooling. The most important changes are grouped below:
Microsoft Testing Platform (MTP) Integration:
testconfig.jsonfor parallel execution and coverage settings (src/Directory.Build.props,src/testconfig.json, [1] [2].src/global.json, src/global.jsonR1-R5).Dependency and Package Updates:
Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Logging, andNUnit3TestAdapter. Added new packages for MTP support and code coverage (src/Directory.Packages.props, [1] [2].System.Runtime.Serialization.Formatters, to ensure compatibility across different target frameworks (src/Directory.Packages.props, [1] [2].Test and Detection Enhancements:
DefaultModeDetectorto recognize MTP assemblies, improving the ability to detect when tests are running under MTP (src/Splat/ModeDetection/DefaultModeDetector.cs, src/Splat/ModeDetection/DefaultModeDetector.csR38).src/Splat.Tests/ModeDetection/DefaultModeDetectorTests.cs, src/Splat.Tests/ModeDetection/DefaultModeDetectorTests.csR251-R305).