What problem does it solve?
Microsoft Testing Platform (MTP) replaces VSTest as the test runner for modern .NET test frameworks (TUnit, MSTest 3.x+). It requires explicit CLI flags for solutions and projects, and uses a non-obvious treenode-filter syntax for selecting tests. It also handles code coverage collection with the --coverage flag and guidance on avoiding VSTest's legacy --collect mechanism.
Core Features & Use Cases
- Explicit CLI usage for running tests: use --solution for solutions and --project for projects.
- Advanced test filtering with --treenode-filter, including the four-level path pattern (Assembly/Namespace/Class/Method) and logical operators.
- Coverage-aware testing: enable and configure code coverage collection via --coverage and related options, with recommended best practices.
Quick Start
Run dotnet test with explicit --solution or --project flags and a valid --treenode-filter expression to target tests.